diff options
Diffstat (limited to 'gtk/gtkshortcutlabel.c')
-rw-r--r-- | gtk/gtkshortcutlabel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c index 90471af3ee..704324fa8c 100644 --- a/gtk/gtkshortcutlabel.c +++ b/gtk/gtkshortcutlabel.c @@ -303,7 +303,8 @@ parse_combination (GtkShortcutLabel *self, accels = g_strsplit (str, "&", 0); for (k = 0; accels[k]; k++) { - if (!gtk_accelerator_parse (accels[k], &key, &modifier)) + gtk_accelerator_parse (accels[k], &key, &modifier); + if (key == 0 && modifier == 0) { retval = FALSE; break; |