diff options
author | Benjamin Otte <otte@redhat.com> | 2010-10-06 00:13:49 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-12-02 20:17:27 +0100 |
commit | deffc9e39f19363d8700bcd29c8dedfa8e75256b (patch) | |
tree | 192ede8cae786893f5d7e7ca3410a7667536ae7e /gdk/x11/gdkx.h | |
parent | cf51750bf4b370a180b6273bd99781956165769d (diff) | |
download | gtk+-deffc9e39f19363d8700bcd29c8dedfa8e75256b.tar.gz |
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.
Diffstat (limited to 'gdk/x11/gdkx.h')
-rw-r--r-- | 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 bde14d56cb..bc155ff65f 100644 --- a/gdk/x11/gdkx.h +++ b/gdk/x11/gdkx.h @@ -176,7 +176,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))) /** * GDK_WINDOW_XID: |