summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_applet_callbacks.c
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-08 13:35:59 -0300
committerPerberos <[email protected]>2011-12-08 13:35:59 -0300
commit09d3b00ca94376ddcb2b1cdb53d6448708936f4f (patch)
treeab147d66e8ba2f91c1f2cc3e59c51a24c04d371e /stickynotes/stickynotes_applet_callbacks.c
parentb67680616f66c648bbad1e6744ab4664800635d3 (diff)
downloadmate-applets-09d3b00ca94376ddcb2b1cdb53d6448708936f4f.tar.bz2
mate-applets-09d3b00ca94376ddcb2b1cdb53d6448708936f4f.tar.xz
GDK_DISPLAY() is deprecated
Diffstat (limited to 'stickynotes/stickynotes_applet_callbacks.c')
-rw-r--r--stickynotes/stickynotes_applet_callbacks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c
index 1369d74b..e1b9037c 100644
--- a/stickynotes/stickynotes_applet_callbacks.c
+++ b/stickynotes/stickynotes_applet_callbacks.c
@@ -181,13 +181,13 @@ void install_check_click_on_desktop (void)
Window *data;
/* We only use this extra property if the actual user-time property's missing */
- int status = XGetWindowProperty( GDK_DISPLAY(), desktop_window, user_time,
+ int status = XGetWindowProperty(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), desktop_window, user_time,
0, 4, False, AnyPropertyType, &actual_type, &actual_format,
&nitems, &bytes, (unsigned char **)&data );
if (actual_type == None)
{
/* No user-time property, so look for the user-time-window */
- status = XGetWindowProperty( GDK_DISPLAY(), desktop_window, user_time_window,
+ status = XGetWindowProperty(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), desktop_window, user_time_window,
0, 4, False, AnyPropertyType, &actual_type, &actual_format,
&nitems, &bytes, (unsigned char **)&data );
if (actual_type != None)