GNOME Bugzilla – Bug 694075
GtkAccelLabel: Don't show "+" if there's no more keys to add
Last modified: 2013-02-18 17:02:01 UTC
.
Created attachment 236574 [details] [review] GtkAccelLabel: Don't show "+" if there's no more keys to add With the following code: #define INVALID_CHAR GDK_KEY_VoidSymbol - 1 gtk_accelerator_get_label (INVALID_CHAR, GDK_SHIFT_MASK | GDK_CONTROL_MASK); we would get this label: Shift+Ctrl+ instead of this label: Shift+Ctrl
Review of attachment 236574 [details] [review]: Looks good with a minor comment. ::: gtk/gtkaccellabel.c @@ +845,3 @@ case ' ': + if (seen_mod) + g_string_append (gstring, klass->mod_separator); Can you put this before the switch() statement?
Yep, wanted to make sure that we only added the '+' when we really added to the string, but forgot to check that all the cases added something ;) Attachment 236574 [details] pushed as 3c8a412 - GtkAccelLabel: Don't show "+" if there's no more keys to add