From cadd0f5cd9c5de37a72e61011ccaa452a151a70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 9 Jan 2012 18:56:37 -0500 Subject: [PATCH] clients/image: Delete old old key code --- clients/image.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/clients/image.c b/clients/image.c index 13115d25..45990f92 100644 --- a/clients/image.c +++ b/clients/image.c @@ -40,7 +40,6 @@ struct image { struct window *window; struct display *display; - uint32_t key; gchar *filename; }; @@ -198,7 +197,7 @@ keyboard_focus_handler(struct window *window, } static struct image * -image_create(struct display *display, uint32_t key, const char *filename) +image_create(struct display *display, const char *filename) { struct image *image; gchar *basename; @@ -219,10 +218,6 @@ image_create(struct display *display, uint32_t key, const char *filename) window_set_title(image->window, title); image->display = display; - /* FIXME: Window uses key 1 for moves, need some kind of - * allocation scheme here. Or maybe just a real toolkit. */ - image->key = key + 100; - window_set_user_data(image->window, image); window_set_redraw_handler(image->window, redraw_handler); window_set_keyboard_focus_handler(image->window, @@ -250,7 +245,7 @@ main(int argc, char *argv[]) } for (i = 1; i < argc; i++) - image_create (d, i, argv[i]); + image_create (d, argv[i]); display_run(d);