[uim-commit] r137 - trunk/helper
makeinu@freedesktop.org
makeinu@freedesktop.org
Thu Jan 6 02:26:34 PST 2005
Author: makeinu
Date: 2005-01-06 02:26:32 -0800 (Thu, 06 Jan 2005)
New Revision: 137
Modified:
trunk/helper/pref-gtk.c
Log:
* pref-gtk.c
- (add_custom_type_choice): Fixed wrong string comparison to set
default item of combo box.
Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c 2005-01-06 10:16:58 UTC (rev 136)
+++ trunk/helper/pref-gtk.c 2005-01-06 10:26:32 UTC (rev 137)
@@ -447,8 +447,8 @@
for(i = 0, item = custom->range->as_choice.valid_items; *item; i++, item++) {
gtk_combo_box_append_text(GTK_COMBO_BOX(combobox),
(*item)->label);
- if(default_symbol == (*item)->symbol);
- default_index = i;
+ if(!strcmp(default_symbol, (*item)->symbol))
+ default_index = i;
}
gtk_combo_box_set_active(GTK_COMBO_BOX(combobox), default_index);
gtk_box_pack_start (GTK_BOX (hbox), combobox, FALSE, TRUE, 0);
More information about the Uim-commit
mailing list