GNOME Bugzilla – Bug 700176
crash in Region & Language
Last modified: 2013-05-13 14:20:57 UTC
To reprodude: 1. open Region & Language 2. click Options 3. see crash It looks like magic for the shift key fails on my specific configuration: $ gsettings get org.gnome.desktop.wm.keybindings switch-input-source [''] $ gsettings get org.gnome.desktop.wm.keybindings switch-input-source-backward @as [] $ gsettings get org.gnome.settings-daemon.peripherals.keyboard input-sources-switcher 'alt-shift-l' Backtrace:
+ Trace 231928
Created attachment 243998 [details] [review] region: Don't crash if the user disabled IS switch keybindings A 0 length string for a keybinding means it is disabled so the whole adding <Shift> magic to the backward accelerator string is pointless anyway.
Review of attachment 243998 [details] [review]: Looks good otherwise. Please commit for gnome-3-8 and master. ::: panels/region/cc-input-options.c @@ +91,2 @@ previous_shortcut = g_strdup (previous[0]); + if (!previous_shortcut && next[0] && next[0][0]) Can you use: next[0] and *next[0] instead?
(In reply to comment #2) > Can you use: > next[0] and *next[0] instead? Yes. Attachment 243998 [details] pushed as f221132 - region: Don't crash if the user disabled IS switch keybindings