diff options
author | John Tytgat <joty@netsurf-browser.org> | 2004-07-05 20:19:52 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2004-07-05 20:19:52 +0000 |
commit | a0d511734ae464d6e7b4d2f5e019611c0cdafea9 (patch) | |
tree | 3427f02b2f829492f6bf89d16c7af91726878e9c /riscos/gui.c | |
parent | ab11d2c94d0ed5c4ed9ab4f32417e3c1c4cf8fb9 (diff) | |
download | netsurf-a0d511734ae464d6e7b4d2f5e019611c0cdafea9.tar.gz netsurf-a0d511734ae464d6e7b4d2f5e019611c0cdafea9.tar.bz2 |
[project @ 2004-07-05 20:19:51 by joty]
Using UTF-8 instead of Latin1 encoding.
svn path=/import/netsurf/; revision=1049
Diffstat (limited to 'riscos/gui.c')
-rw-r--r-- | riscos/gui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 49c71f77e..054defba7 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -927,9 +927,10 @@ void gui_gadget_combo(struct browser_window* bw, struct form_control* g, unsigne combo_menu->entries[count].sub_menu = wimp_NO_SUB_MENU; combo_menu->entries[count].icon_flags = wimp_ICON_TEXT | wimp_ICON_INDIRECTED | wimp_ICON_FILLED | wimp_ICON_VCENTRED | (wimp_COLOUR_BLACK << wimp_ICON_FG_COLOUR_SHIFT) | (wimp_COLOUR_WHITE << wimp_ICON_BG_COLOUR_SHIFT) | (wimp_BUTTON_MENU_ICON << wimp_ICON_BUTTON_TYPE_SHIFT); - combo_menu->entries[count].data.indirected_text.text = o->text; + /* \todo combo_menu->entries[count].data.indirected_text.text needs to be free() when menu gets closed. */ + combo_menu->entries[count].data.indirected_text.text = cnv_str_local_enc(o->text); combo_menu->entries[count].data.indirected_text.validation = "\0"; - combo_menu->entries[count].data.indirected_text.size = strlen(o->text) + 1; + combo_menu->entries[count].data.indirected_text.size = strlen(combo_menu->entries[count].data.indirected_text.text) + 1; } wimp_get_pointer_info(&pointer); |