summaryrefslogtreecommitdiff
path: root/mate-session/gsm-inhibit-dialog.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2013-11-14 21:54:05 +0100
committerraveit65 <[email protected]>2013-11-14 21:54:05 +0100
commit86e4297c9fc01407a2fa00338a02548611ce9056 (patch)
treec2e04713ffec554379bdba8ac87171326db35446 /mate-session/gsm-inhibit-dialog.c
parent34033a68cee187e1d3d421d941488075d13b479d (diff)
downloadmate-session-manager-86e4297c9fc01407a2fa00338a02548611ce9056.tar.bz2
mate-session-manager-86e4297c9fc01407a2fa00338a02548611ce9056.tar.xz
GTK3: Fix compile warning by using gdk_error_trap_pop_ignored()
Diffstat (limited to 'mate-session/gsm-inhibit-dialog.c')
-rw-r--r--mate-session/gsm-inhibit-dialog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mate-session/gsm-inhibit-dialog.c b/mate-session/gsm-inhibit-dialog.c
index 1505449..3edc703 100644
--- a/mate-session/gsm-inhibit-dialog.c
+++ b/mate-session/gsm-inhibit-dialog.c
@@ -497,7 +497,11 @@ get_pixbuf_for_window (GdkDisplay *gdkdisplay,
gdk_error_trap_push ();
XFreePixmap (display, xpixmap);
gdk_display_sync (gdkdisplay);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_error_trap_pop_ignored ();
+#else
gdk_error_trap_pop ();
+#endif
}
if (pixbuf != NULL) {
@@ -1038,7 +1042,11 @@ gsm_inhibit_dialog_constructor (GType type,
dialog->priv->have_xrender = FALSE;
}
gdk_display_sync (gdkdisplay);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_error_trap_pop_ignored ();
+#else
gdk_error_trap_pop ();
+#endif
#endif /* HAVE_XRENDER */
/* FIXME: turn this on when it is ready */