diff options
author | Luis Medinas <lmedinas@gnome.org> | 2010-10-02 20:00:04 +0100 |
---|---|---|
committer | Luis Medinas <metalgod@heisenberg.site> | 2010-10-02 20:01:14 +0100 |
commit | bb00f842d0e1504d53c348b9de3c7eadb5251796 (patch) | |
tree | 0d3fc26910710df0d4074f537d99b1220d871e30 | |
parent | Updated Lithuanian translation (diff) | |
download | zenity-bb00f842d0e1504d53c348b9de3c7eadb5251796.tar.gz zenity-bb00f842d0e1504d53c348b9de3c7eadb5251796.tar.bz2 zenity-bb00f842d0e1504d53c348b9de3c7eadb5251796.zip |
Remove GDK_DISPLAY() usage. Fixes build with GTK+-3.0
Replaced by GDK_DISPLAY_XDISPLAY.
-rw-r--r-- | src/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -328,7 +328,7 @@ transient_get_xterm (void) if (*wid_str != '\0' && *wid_str_end == '\0' && wid != 0) { XWindowAttributes attrs; gdk_error_trap_push (); - ret = XGetWindowAttributes (GDK_DISPLAY(), wid, &attrs); + ret = XGetWindowAttributes (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), wid, &attrs); gdk_flush(); if (gdk_error_trap_pop () != 0 || ret == 0) { return None; @@ -350,7 +350,7 @@ static gboolean transient_is_toplevel (Window wid) { XTextProperty prop; - Display *dpy = GDK_DISPLAY (); + Display *dpy = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()); if (!XGetWMName (dpy, wid, &prop)) return FALSE; transient_x_free (prop.value); @@ -367,7 +367,7 @@ static Window transient_get_xterm_toplevel (void) { Window xterm = transient_get_xterm (); - Display *dpy = GDK_DISPLAY (); + Display *dpy = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()); while (xterm != None && !transient_is_toplevel (xterm)) { Window root, parent, *children; |