[gtk+/rendering-cleanup: 126/140] x11: Use gdk_window_get_screen() in the testutils



commit f0a9650f203dcc8a0ff1eb55fb080a4f4af5cf32
Author: Benjamin Otte <otte redhat com>
Date:   Sun Aug 29 01:53:58 2010 +0200

    x11: Use gdk_window_get_screen() in the testutils

 gdk/x11/gdktestutils-x11.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdktestutils-x11.c b/gdk/x11/gdktestutils-x11.c
index f90bd04..06e1c36 100644
--- a/gdk/x11/gdktestutils-x11.c
+++ b/gdk/x11/gdktestutils-x11.c
@@ -102,7 +102,7 @@ gdk_test_simulate_key (GdkWindow      *window,
   g_return_val_if_fail (window != NULL, FALSE);
   if (!GDK_WINDOW_IS_MAPPED (window))
     return FALSE;
-  screen = gdk_colormap_get_screen (gdk_drawable_get_colormap (window));
+  screen = gdk_window_get_screen (window);
   if (x < 0 && y < 0)
     {
       gdk_drawable_get_size (window, &x, &y);
@@ -208,7 +208,7 @@ gdk_test_simulate_button (GdkWindow      *window,
 
   if (!GDK_WINDOW_IS_MAPPED (window))
     return FALSE;
-  screen = gdk_colormap_get_screen (gdk_drawable_get_colormap (window));
+  screen = gdk_window_get_screen (window);
   if (x < 0 && y < 0)
     {
       gdk_drawable_get_size (window, &x, &y);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]