[gtk+/rendering-cleanup: 126/142] x11: Use gdk_window_get_screen() in the testutils
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 126/142] x11: Use gdk_window_get_screen() in the testutils
- Date: Thu, 9 Sep 2010 16:14:52 +0000 (UTC)
commit 10301fa71c37c01d3327050435b6ba475796b0c9
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]