summaryrefslogtreecommitdiff
path: root/typing-break/drw-monitor.c
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-08 04:01:38 -0300
committerPerberos <[email protected]>2011-12-08 04:01:38 -0300
commit8e68aa4f36fd333cb4f3c65efd7b0525a793299e (patch)
tree98c5d74fabbd6035f29be806b5230f9d11e0d9ed /typing-break/drw-monitor.c
parentc9b0659767febba8b1852c3c5726d55983c22e28 (diff)
downloadmate-control-center-8e68aa4f36fd333cb4f3c65efd7b0525a793299e.tar.bz2
mate-control-center-8e68aa4f36fd333cb4f3c65efd7b0525a793299e.tar.xz
removing deprecated GDK_DISPLAY()
Diffstat (limited to 'typing-break/drw-monitor.c')
-rw-r--r--typing-break/drw-monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/typing-break/drw-monitor.c b/typing-break/drw-monitor.c
index 5f0270c0..c4dd348a 100644
--- a/typing-break/drw-monitor.c
+++ b/typing-break/drw-monitor.c
@@ -146,7 +146,7 @@ drw_monitor_timeout (DrwMonitor *monitor)
priv = monitor->priv;
- if (XScreenSaverQueryInfo (GDK_DISPLAY (), DefaultRootWindow (GDK_DISPLAY ()), priv->ss_info) != 0) {
+ if (XScreenSaverQueryInfo (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), DefaultRootWindow (GDK_DISPLAY_XDISPLAY(gdk_display_get_default())), priv->ss_info) != 0) {
if (priv->ss_info->idle < priv->last_idle) {
now = time (NULL);
@@ -172,7 +172,7 @@ drw_monitor_setup (DrwMonitor *monitor)
priv = monitor->priv;
- if (!XScreenSaverQueryExtension (GDK_DISPLAY (), &event_base, &error_base)) {
+ if (!XScreenSaverQueryExtension (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), &event_base, &error_base)) {
return FALSE;
}