[uim-commit] r506 - trunk/helper
makeinu at freedesktop.org
makeinu at freedesktop.org
Thu Feb 3 11:58:38 PST 2005
Author: makeinu
Date: 2005-02-03 11:58:21 -0800 (Thu, 03 Feb 2005)
New Revision: 506
Modified:
trunk/helper/pref-gtk.c
Log:
* helper/pref-gtk.c:
- (olist_pref_entry_set_value): Quote each item of list and put space
after separator(comma) to make easy to recognize. Although I don't
think that it is the best way, I think it is better than before.
- (key_pref_entry_set_value): Same with above.
Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c 2005-02-03 19:06:50 UTC (rev 505)
+++ trunk/helper/pref-gtk.c 2005-02-03 19:58:21 UTC (rev 506)
@@ -680,8 +680,8 @@
item = custom->value->as_olist[++i])
{
if (i != 0)
- g_string_append(str, ",");
- g_string_append(str, item->label);
+ g_string_append(str, ", ");
+ g_string_append_printf(str, "\"%s\"", item->label);
}
} else {
/* error message */
@@ -1502,8 +1502,8 @@
key = custom->value->as_key[++i])
{
if (i != 0)
- g_string_append(str, ",");
- g_string_append(str, key->literal);
+ g_string_append(str, ", ");
+ g_string_append_printf(str, "\"%s\"", key->literal);
}
} else {
/* error message */
More information about the Uim-commit
mailing list