summaryrefslogtreecommitdiff
path: root/plugins/background
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-08 14:09:44 -0300
committerPerberos <[email protected]>2011-12-08 14:09:44 -0300
commit283de05cf3b8bed9dcde9e80875b860520de392a (patch)
tree0447d2c7e271ed05493794670fac0d6f05d0d475 /plugins/background
parent81ea15d1ce166e69e7fff11c88e16c42d8db190d (diff)
downloadmate-settings-daemon-283de05cf3b8bed9dcde9e80875b860520de392a.tar.bz2
mate-settings-daemon-283de05cf3b8bed9dcde9e80875b860520de392a.tar.xz
GDK_DISPLAY() is deprecated
Diffstat (limited to 'plugins/background')
-rw-r--r--plugins/background/gsd-background-manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/background/gsd-background-manager.c b/plugins/background/gsd-background-manager.c
index 8c42445..c05ec3f 100644
--- a/plugins/background/gsd-background-manager.c
+++ b/plugins/background/gsd-background-manager.c
@@ -84,14 +84,14 @@ caja_is_running (void)
gboolean running;
gint error;
- window_id_atom = XInternAtom (GDK_DISPLAY (),
+ window_id_atom = XInternAtom (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
"CAJA_DESKTOP_WINDOW_ID", True);
if (window_id_atom == None) {
return FALSE;
}
- retval = XGetWindowProperty (GDK_DISPLAY (),
+ retval = XGetWindowProperty (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
GDK_ROOT_WINDOW (),
window_id_atom,
0,
@@ -118,11 +118,11 @@ caja_is_running (void)
return FALSE;
}
- wmclass_atom = XInternAtom (GDK_DISPLAY (), "WM_CLASS", False);
+ wmclass_atom = XInternAtom (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), "WM_CLASS", False);
gdk_error_trap_push ();
- retval = XGetWindowProperty (GDK_DISPLAY (),
+ retval = XGetWindowProperty (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
caja_xid,
wmclass_atom,
0,