From f05a301299065fd6794ad09361e31375c790fd5d Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 3 Jun 2016 20:11:38 +0200 Subject: GTK+3: replace gdk_error_trap_pop () with gdk_error_trap_pop_ignored () fixes a wunused results warning --- src/gpm-button.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gpm-button.c b/src/gpm-button.c index b331cf6..8c2e808 100644 --- a/src/gpm-button.c +++ b/src/gpm-button.c @@ -171,7 +171,11 @@ gpm_button_grab_keystring (GpmButton *button, guint64 keycode) /* we are not processing the error */ gdk_flush (); +#if GTK_CHECK_VERSION (3, 0, 0) + gdk_error_trap_pop_ignored (); +#else gdk_error_trap_pop (); +#endif egg_debug ("Grabbed modmask=%x, keycode=%li", modmask, (long int) keycode); return TRUE; -- cgit v1.2.1