summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndre Miranda <andreldm@xfce.org>2018-06-02 01:25:07 -0300
committerAndre Miranda <andreldm@xfce.org>2018-06-02 01:25:07 -0300
commitb847281bc7c76b312a497dfe1cb83e8770cb1684 (patch)
treebdd91bd106f6b29e8f1deea68b0f0666db88f133 /plugins
parent24322ac18d711cfa9e2bdf6237611bf6029f966f (diff)
downloadthunar-b847281bc7c76b312a497dfe1cb83e8770cb1684.tar.gz
Replace gdk_error_trap_* by X11 specific functions
Diffstat (limited to 'plugins')
-rw-r--r--plugins/thunar-wallpaper/twp-provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/thunar-wallpaper/twp-provider.c b/plugins/thunar-wallpaper/twp-provider.c
index 287340ff..0a91c1d6 100644
--- a/plugins/thunar-wallpaper/twp-provider.c
+++ b/plugins/thunar-wallpaper/twp-provider.c
@@ -372,7 +372,7 @@ twp_get_active_workspace_number (GdkScreen *screen)
gint format_ret;
gint ws_num = 0;
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (gdk_display_get_default ());
root = gdk_screen_get_root_window (screen);
@@ -407,7 +407,7 @@ twp_get_active_workspace_number (GdkScreen *screen)
XFree (prop_ret);
}
- gdk_error_trap_pop_ignored ();
+ gdk_x11_display_error_trap_pop_ignored (gdk_display_get_default ());
return ws_num;
}