summaryrefslogtreecommitdiff
path: root/mate-session/gsm-inhibit-dialog.c
diff options
context:
space:
mode:
authoryetist <[email protected]>2018-06-29 18:33:13 +0800
committerraveit65 <[email protected]>2018-06-30 16:33:50 +0200
commit8f35c049172ab4bb1f73069e6a98f29ab45c4c0b (patch)
tree1f28f5ce0d842f6a6a05920fe51a6904d94f9cdf /mate-session/gsm-inhibit-dialog.c
parenta4540f2622e9e403572e522e1472e032e13f7c83 (diff)
downloadmate-session-manager-8f35c049172ab4bb1f73069e6a98f29ab45c4c0b.tar.bz2
mate-session-manager-8f35c049172ab4bb1f73069e6a98f29ab45c4c0b.tar.xz
replace deprecated gdk_error_trap functions
Diffstat (limited to 'mate-session/gsm-inhibit-dialog.c')
-rw-r--r--mate-session/gsm-inhibit-dialog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mate-session/gsm-inhibit-dialog.c b/mate-session/gsm-inhibit-dialog.c
index 94a2026..1ea58ed 100644
--- a/mate-session/gsm-inhibit-dialog.c
+++ b/mate-session/gsm-inhibit-dialog.c
@@ -423,10 +423,10 @@ get_pixbuf_for_window (GdkDisplay *gdkdisplay,
pixbuf = pixbuf_get_from_pixmap (display, xpixmap, width, height);
if (xpixmap != None) {
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (gdkdisplay);
XFreePixmap (display, xpixmap);
gdk_display_sync (gdkdisplay);
- gdk_error_trap_pop_ignored ();
+ gdk_x11_display_error_trap_pop_ignored (gdkdisplay);
}
if (pixbuf != NULL) {
@@ -958,7 +958,7 @@ gsm_inhibit_dialog_constructor (GType type,
#ifdef HAVE_XRENDER
gdkdisplay = gdk_display_get_default ();
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (gdkdisplay);
if (XRenderQueryExtension (GDK_DISPLAY_XDISPLAY (gdkdisplay), &dialog->priv->xrender_event_base, &dialog->priv->xrender_error_base)) {
g_debug ("GsmInhibitDialog: Initialized XRender extension");
dialog->priv->have_xrender = TRUE;
@@ -967,7 +967,7 @@ gsm_inhibit_dialog_constructor (GType type,
dialog->priv->have_xrender = FALSE;
}
gdk_display_sync (gdkdisplay);
- gdk_error_trap_pop_ignored ();
+ gdk_x11_display_error_trap_pop_ignored (gdkdisplay);
#endif /* HAVE_XRENDER */
/* FIXME: turn this on when it is ready */