Region: fix display of layouts on the system tab
G_N_ELEMENTS only works on explicitly declared arrays.
This commit is contained in:
parent
b762f51e13
commit
43dfc5418c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue