[gnome-control-center/gnome-3-2] Region: fix display of layouts on the system tab
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] Region: fix display of layouts on the system tab
- Date: Sat, 17 Sep 2011 02:37:32 +0000 (UTC)
commit c9f1ef051a35908ce7f50970aa3391a78df2dd17
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 16 22:35:04 2011 -0400
Region: fix display of layouts on the system tab
G_N_ELEMENTS only works on explicitly declared arrays.
panels/region/gnome-region-panel-system.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-system.c b/panels/region/gnome-region-panel-system.c
index d12e10d..07e4401 100644
--- a/panels/region/gnome-region-panel-system.c
+++ b/panels/region/gnome-region-panel-system.c
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]