summaryrefslogtreecommitdiff
path: root/src/gpm-button.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-03 20:11:38 +0200
committerraveit65 <[email protected]>2016-06-07 11:01:56 +0200
commitf05a301299065fd6794ad09361e31375c790fd5d (patch)
tree89adc67c6a0bfa0f9157c365abe9af53c9145d2d /src/gpm-button.c
parent5a4be0f9d28a3dfd4f0e50b97b22ac1dd493311b (diff)
downloadmate-power-manager-f05a301299065fd6794ad09361e31375c790fd5d.tar.bz2
mate-power-manager-f05a301299065fd6794ad09361e31375c790fd5d.tar.xz
GTK+3: replace gdk_error_trap_pop () with gdk_error_trap_pop_ignored ()
fixes a wunused results warning
Diffstat (limited to 'src/gpm-button.c')
-rw-r--r--src/gpm-button.c4
1 files changed, 4 insertions, 0 deletions
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;