summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuis Medinas <lmedinas@gnome.org>2010-10-02 20:00:04 +0100
committerLuis Medinas <metalgod@heisenberg.site>2010-10-02 20:01:14 +0100
commitbb00f842d0e1504d53c348b9de3c7eadb5251796 (patch)
tree0d3fc26910710df0d4074f537d99b1220d871e30 /src
parentUpdated Lithuanian translation (diff)
downloadzenity-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.
Diffstat (limited to 'src')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 8f887f35..186a8db4 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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;
bgstack15