[dia] [gtk-deprecated] use gdk_window_get_display()



commit 720dd6e1b1f2d23ae559e633f82e848bf63bb2a3
Author: Hans Breuer <hans breuer org>
Date:   Sat Aug 18 11:31:56 2012 +0200

    [gtk-deprecated] use gdk_window_get_display()

 app/cursor.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/cursor.c b/app/cursor.c
index 0423dd8..b01e1bc 100644
--- a/app/cursor.c
+++ b/app/cursor.c
@@ -105,7 +105,11 @@ create_cursor(GdkWindow *window,
   GdkDisplay *display;
 
   g_return_val_if_fail(window != NULL, NULL);
+#if GTK_CHECK_VERSION (2,24,0)
+  display = gdk_window_get_display (window);
+#else
   display = gdk_drawable_get_display (GDK_DRAWABLE (window));
+#endif
 
   pixbuf = gdk_pixbuf_new_from_inline(-1, data, FALSE, NULL);
 



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