7ceb3da
--- gnome-applets-2.16.0.1/libgswitchit/gnome-kbd-indicator.c.keyboard-indicator-segfault	2006-08-12 21:26:53.000000000 -0400
7ceb3da
+++ gnome-applets-2.16.0.1/libgswitchit/gnome-kbd-indicator.c	2006-09-18 09:23:54.000000000 -0400
7ceb3da
@@ -410,18 +410,22 @@
7ceb3da
 		    xkl_engine_get_num_groups (globals.engine);
7ceb3da
 		globals.full_group_names =
7ceb3da
 		    g_new0 (char *, total_groups + 1);
7ceb3da
+		globals.short_group_names =
7ceb3da
+		    g_new0 (char *, total_groups + 1);
7ceb3da
 
7ceb3da
 		if (xkl_engine_get_features (globals.engine) &
7ceb3da
 		    XKLF_MULTIPLE_LAYOUTS_SUPPORTED) {
7ceb3da
 			GSList *lst = globals.kbd_cfg.layouts;
7ceb3da
-			for (i = 0; lst; lst = lst->next) {
7ceb3da
-				globals.full_group_names[i++] =
7ceb3da
-				    g_strdup ((char *) lst->data);
7ceb3da
+			for (i = 0; lst; lst = lst->next,i++) {
7ceb3da
+				globals.short_group_names[i] = 
7ceb3da
+				  globals.full_group_names[i] =
7ceb3da
+				  g_strdup ((char *) lst->data);
7ceb3da
 			}
7ceb3da
 		} else {
7ceb3da
 			for (i = total_groups; --i >= 0;) {
7ceb3da
-				globals.full_group_names[i] =
7ceb3da
-				    g_strdup_printf ("Group %d", i);
7ceb3da
+				globals.short_group_names[i] =
7ceb3da
+				  globals.full_group_names[i] =
7ceb3da
+				  g_strdup_printf ("Group %d", i);
7ceb3da
 			}
7ceb3da
 		}
7ceb3da
 	}