diff options
author | Pablo Barciela <[email protected]> | 2019-01-07 01:32:05 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-02-07 10:11:57 +0100 |
commit | 92910b6b2dd0b75bcc99e30eb660742168cef6ce (patch) | |
tree | 1d9afce6a805eed730f11d920d6cdccc7350164a /maximus/xutils.c | |
parent | 80bc7d79d79acdbb1f5b9b7dcb8e2b1ac7fd7884 (diff) | |
download | mate-netbook-92910b6b2dd0b75bcc99e30eb660742168cef6ce.tar.bz2 mate-netbook-92910b6b2dd0b75bcc99e30eb660742168cef6ce.tar.xz |
avoid deprecated 'gdk_error_trap_push/pop/pop_ignored' and 'gdk_flush'
Diffstat (limited to 'maximus/xutils.c')
-rw-r--r-- | maximus/xutils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/maximus/xutils.c b/maximus/xutils.c index 1ca894a..85b09e6 100644 --- a/maximus/xutils.c +++ b/maximus/xutils.c @@ -37,14 +37,15 @@ void _wnck_error_trap_push (void) { - gdk_error_trap_push (); + gdk_x11_display_error_trap_push (gdk_display_get_default ()); } int _wnck_error_trap_pop (void) { - XSync (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), False); - return gdk_error_trap_pop (); + GdkDisplay *gdk_display = gdk_display_get_default (); + XSync (GDK_DISPLAY_XDISPLAY (gdk_display), False); + return gdk_x11_display_error_trap_pop (gdk_display); } static char* |