GNOME Bugzilla – Bug 738303
status/keyboard: Ensure we always have at least one input source
Last modified: 2014-10-10 16:52:51 UTC
This (indirectly) fixes the status indicator coming up empty when the gsetting is empty as seen in gnome continuous: http://build.gnome.org/continuous/buildmaster/builds/2014/10/10/18/integrationtest/work-gnome-continuous-x86_64-runtime/screenshot-2.png
Created attachment 288229 [details] [review] status/keyboard: Ensure we always have at least one input source Most of the code handles the sources setting being empty and InputSourceManager.currentSource being null because previously the "model" (i.e. the sources list) was kept in gnome-settings-daemon. But this is fragile and since we're now the canonical place where the list lives we can force it to never be empty even if the gsetting is empty or contains only invalid entries. Adding the default keyboard layout in that case is the safest thing to do.
Review of attachment 288229 [details] [review]: Looks good.
Attachment 288229 [details] pushed as 72c6f00 - status/keyboard: Ensure we always have at least one input source