diff options
author | raveit65 <[email protected]> | 2018-08-12 16:25:51 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-08-15 17:59:32 +0200 |
commit | f791ef8c34fe117914cbb48feb81e3229479af8a (patch) | |
tree | bf1a405fe47615d8643a7015674c4bc01e813470 /libmate-desktop | |
parent | 6ef0247eefb342d0d345a97f201aea217203b499 (diff) | |
download | mate-desktop-f791ef8c34fe117914cbb48feb81e3229479af8a.tar.bz2 mate-desktop-f791ef8c34fe117914cbb48feb81e3229479af8a.tar.xz |
mate-desktop-item: replace deprecated gdk_error_trap_push/pop
Diffstat (limited to 'libmate-desktop')
-rw-r--r-- | libmate-desktop/mate-desktop-item.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libmate-desktop/mate-desktop-item.c b/libmate-desktop/mate-desktop-item.c index 3413e56..7b96385 100644 --- a/libmate-desktop/mate-desktop-item.c +++ b/libmate-desktop/mate-desktop-item.c @@ -1473,14 +1473,20 @@ static void sn_error_trap_push (SnDisplay *display, Display *xdisplay) { - gdk_error_trap_push (); + GdkDisplay *gdkdisplay; + + gdkdisplay = gdk_display_get_default (); + gdk_x11_display_error_trap_push (gdkdisplay); } static void sn_error_trap_pop (SnDisplay *display, Display *xdisplay) { - gdk_error_trap_pop_ignored (); + GdkDisplay *gdkdisplay; + + gdkdisplay = gdk_display_get_default (); + gdk_x11_display_error_trap_pop_ignored (gdkdisplay); } static char ** |