[uim-commit] r151 - trunk/helper

makeinu@freedesktop.org makeinu@freedesktop.org
Thu Jan 6 23:42:08 PST 2005


Author: makeinu
Date: 2005-01-06 23:41:45 -0800 (Thu, 06 Jan 2005)
New Revision: 151

Modified:
   trunk/helper/pref-gtk.c
Log:
* helper/pref-gtk.c
  - (create_pref_treeview): Use label instead of symbol for group name
    on tree view.


Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c	2005-01-07 07:28:20 UTC (rev 150)
+++ trunk/helper/pref-gtk.c	2005-01-07 07:41:45 UTC (rev 151)
@@ -134,11 +134,13 @@
   
   primary_groups = uim_custom_primary_groups();
   for (grp = primary_groups; *grp; grp++) {
+    struct uim_custom_group *group = uim_custom_group_get(*grp);
     gtk_tree_store_append (tree_store, &iter, NULL/* parent iter */);
     gtk_tree_store_set (tree_store, &iter,
-			GROUP_COLUMN, *grp,
+			GROUP_COLUMN, group->label,
 			GROUP_WIDGET, create_group_widget(*grp),
 			-1);
+    uim_custom_group_free(group);
   }
   gtk_tree_view_set_model (GTK_TREE_VIEW(pref_tree_view), GTK_TREE_MODEL(tree_store));
   g_object_unref (tree_store);



More information about the Uim-commit mailing list