[uim-commit] r434 - trunk/helper
kzk at freedesktop.org
kzk at freedesktop.org
Mon Jan 31 11:01:57 PST 2005
Author: kzk
Date: 2005-01-31 11:01:53 -0800 (Mon, 31 Jan 2005)
New Revision: 434
Modified:
trunk/helper/pref-gtk.c
Log:
* helper/pref-gtk.c
- custom->value->as_key is not the array of the pointer to
type (struct uim_custom*) but the array of the pointer to
type (struct uim_custom_key*)
Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c 2005-01-31 18:59:11 UTC (rev 433)
+++ trunk/helper/pref-gtk.c 2005-01-31 19:01:53 UTC (rev 434)
@@ -1568,9 +1568,9 @@
num++;
custom->value->as_key = realloc(custom->value->as_key,
- sizeof(struct uim_custom *) * (num + 1));
+ sizeof(struct uim_custom_key *) * (num + 1));
- custom->value->as_key[num - 1] = malloc(sizeof(struct uim_custom));
+ custom->value->as_key[num - 1] = malloc(sizeof(struct uim_custom_key));
custom->value->as_key[num - 1]->type = UCustomKey_Regular;
custom->value->as_key[num - 1]->editor_type = UCustomKeyEditor_Basic;
custom->value->as_key[num - 1]->literal = strdup(str->str);
More information about the Uim-commit
mailing list