[gimp] app/tests: Use gdk_window_get_display()
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app/tests: Use gdk_window_get_display()
- Date: Wed, 6 Apr 2011 19:04:21 +0000 (UTC)
commit 18286d29ecd50451866a3bf66229cf150ea2ea52
Author: Martin Nordholts <martinn src gnome org>
Date: Wed Apr 6 21:05:13 2011 +0200
app/tests: Use gdk_window_get_display()
Use gdk_window_get_display() (available since GTK+ 2.24 which we now
depend on) and not gdk_drawable_get_display(), which is deprecated.
app/tests/test-tools.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tests/test-tools.c b/app/tests/test-tools.c
index 5ccb426..e27a1a6 100644
--- a/app/tests/test-tools.c
+++ b/app/tests/test-tools.c
@@ -207,7 +207,7 @@ gimp_test_synthesize_tool_button_event (GimpDisplayShell *shell,
{
GdkEvent *event = gdk_event_new (button_event_type);
GdkWindow *window = gtk_widget_get_window (GTK_WIDGET (shell->canvas));
- GdkDisplay *display = gdk_drawable_get_display (GDK_DRAWABLE (window));
+ GdkDisplay *display = gdk_window_get_display (window);
g_assert (button_event_type == GDK_BUTTON_PRESS ||
button_event_type == GDK_BUTTON_RELEASE);
@@ -238,7 +238,7 @@ gimp_test_synthesize_tool_motion_event (GimpDisplayShell *shell,
{
GdkEvent *event = gdk_event_new (GDK_MOTION_NOTIFY);
GdkWindow *window = gtk_widget_get_window (GTK_WIDGET (shell->canvas));
- GdkDisplay *display = gdk_drawable_get_display (GDK_DRAWABLE (window));
+ GdkDisplay *display = gdk_window_get_display (window);
event->motion.window = g_object_ref (window);
event->motion.send_event = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]