Region: fix display of layouts on the system tab

G_N_ELEMENTS only works on explicitly declared arrays.
This commit is contained in:
Matthias Clasen 2011-09-16 22:35:04 -04:00
parent b762f51e13
commit 43dfc5418c

View file

@ -88,7 +88,7 @@ xkb_settings_changed (GSettings *settings,
GString *str = g_string_new ("");
gchar **layouts = g_settings_get_strv (settings, "layouts");
for (i = 0; i < G_N_ELEMENTS (layouts); i++) {
for (i = 0; layouts[i]; i++) {
gchar *utf_visible = xkb_layout_description_utf8 (layouts[i]);
if (utf_visible != NULL) {