From 1ebc7ac9b310e2f8ccd948f65b8092c4575c3623 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 14 Jan 2016 11:33:00 +0300 Subject: mouse: use gdk_error_trap_pop_ignored in GTK+3 build --- capplets/mouse/mate-mouse-properties.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'capplets') diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index 8e638509..88555d3b 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -290,7 +290,12 @@ synaptics_check_capabilities (GtkBuilder *dialog) XFree (data); } + +#if GTK_CHECK_VERSION (3, 0, 0) + gdk_error_trap_pop_ignored (); +#else gdk_error_trap_pop (); +#endif XCloseDevice (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), device); } @@ -341,7 +346,12 @@ find_synaptics (void) XFree (data); ret = TRUE; } + +#if GTK_CHECK_VERSION (3, 0, 0) + gdk_error_trap_pop_ignored (); +#else gdk_error_trap_pop (); +#endif XCloseDevice (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), device); -- cgit v1.2.1