diff options
author | Jürg Billeter <j@bitron.ch> | 2010-11-10 09:09:38 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-11-10 09:09:38 -0500 |
commit | 4773148f1a89cb69e186f17ec6e6fa6f741234e0 (patch) | |
tree | 99c9c0eecf1b36472f5ff4c5b597461b2bf473b3 /modules/input/gtkimcontextxim.c | |
parent | 75a1102901d5f1652611fddd23ab3f171f80aa71 (diff) | |
download | gtk+-4773148f1a89cb69e186f17ec6e6fa6f741234e0.tar.gz |
Use more gdk_window_ accessors instead of gdk_drawable_ accessors
This fixes compile-time warnings and crashes on 64-bit systems.
Diffstat (limited to 'modules/input/gtkimcontextxim.c')
-rw-r--r-- | modules/input/gtkimcontextxim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/input/gtkimcontextxim.c b/modules/input/gtkimcontextxim.c index 57b122de94..aa85b43470 100644 --- a/modules/input/gtkimcontextxim.c +++ b/modules/input/gtkimcontextxim.c @@ -495,7 +495,7 @@ get_im (GdkWindow *client_window, { GSList *tmp_list; GtkXIMInfo *info; - GdkScreen *screen = gdk_drawable_get_screen (client_window); + GdkScreen *screen = gdk_window_get_screen (client_window); info = NULL; tmp_list = open_ims; @@ -716,7 +716,7 @@ gtk_im_context_xim_filter_keypress (GtkIMContext *context, KeySym keysym; Status status; gboolean result = FALSE; - GdkWindow *root_window = gdk_screen_get_root_window (gdk_drawable_get_screen (event->window)); + GdkWindow *root_window = gdk_screen_get_root_window (gdk_window_get_screen (event->window)); XKeyPressedEvent xevent; |