shortcutcontroller: Don't return a shortcut stope as GdkModifierType
authorTimm Bäder <mail@baedert.org>
Sun, 17 May 2020 07:53:23 +0000 (09:53 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 17 May 2020 13:30:03 +0000 (15:30 +0200)
gtk/gtkshortcutcontroller.c

index 99fa997b767c046e8f8ee8f4699d716262a2b53d..05adcdf3bbf595786fe948d0b240b182ef81d843 100644 (file)
@@ -866,7 +866,7 @@ gtk_shortcut_controller_set_mnemonics_modifiers (GtkShortcutController *self,
 GdkModifierType
 gtk_shortcut_controller_get_mnemonics_modifiers (GtkShortcutController *self)
 {
-  g_return_val_if_fail (GTK_IS_SHORTCUT_CONTROLLER (self), GTK_SHORTCUT_SCOPE_LOCAL);
+  g_return_val_if_fail (GTK_IS_SHORTCUT_CONTROLLER (self), 0);
 
   return self->mnemonics_modifiers;
 }