[gtk+/rendering-cleanup: 2/17] API: x11: Change GDK_WINDOW_XDISPLAY() macro



commit 2c7a8d46fe09600a5b624b016913b6d31aa55b8c
Author: Benjamin Otte <otte redhat com>
Date:   Wed Oct 6 00:13:49 2010 +0200

    API: x11: Change GDK_WINDOW_XDISPLAY() macro
    
    Instead of lots of magic, we can go the usual way of requesting the
    XDisplay of the window's display. So we do that.

 gdk/x11/gdkx.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkx.h b/gdk/x11/gdkx.h
index bbe7050..cb9fe5e 100644
--- a/gdk/x11/gdkx.h
+++ b/gdk/x11/gdkx.h
@@ -82,7 +82,7 @@ gint     gdk_x11_get_default_screen       (void);
 
 #define GDK_DISPLAY_XDISPLAY(display) (gdk_x11_display_get_xdisplay (display))
 
-#define GDK_WINDOW_XDISPLAY(win)      (gdk_x11_drawable_get_xdisplay (gdk_x11_window_get_drawable_impl (win)))
+#define GDK_WINDOW_XDISPLAY(win)      (GDK_DISPLAY_XDISPLAY (gdk_window_get_display (win)))
 #define GDK_WINDOW_XID(win)           (gdk_x11_window_get_xid (win))
 #define GDK_WINDOW_XWINDOW(win)       (gdk_x11_window_get_xid (win))
 #define GDK_DRAWABLE_XDISPLAY(win)    (gdk_x11_drawable_get_xdisplay (win))



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