From c40fc354b3783502ce0c9be1629380acb10c0570 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Tue, 5 Aug 2008 01:23:04 +0000 Subject: - Teached ro_gui_set_icon_string() and ro_gui_get_icon_string() about the difference between direct and indirect icons. - ro_gui_get_icon_string(): - Constify return value of ro_gui_get_icon_string() as you really shouldn't change its contents via this pointer. - Enfore NUL string termination as return value (instead of other control char termination) - Merged ro_gui_set_icon_string_le() into ro_gui_set_icon_string() by adding ro_gui_set_icon_string() and extra to_utf8 parameter. - ro_gui_strncmp(): added svn path=/trunk/netsurf/; revision=4907 --- riscos/configure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscos/configure.c') diff --git a/riscos/configure.c b/riscos/configure.c index d3b6f6e9a..a90a6fc62 100644 --- a/riscos/configure.c +++ b/riscos/configure.c @@ -320,7 +320,7 @@ void ro_gui_configure_register(const char *window, /* Set the icon's text in current local encoding */ ro_gui_set_icon_string(configure_window, tool->i, - messages_get(tool->name)); + messages_get(tool->name), true); /* link into our list alphabetically */ if ((!configure_tools) || @@ -379,7 +379,7 @@ bool ro_gui_configure_translate(void) for (tool = configure_tools; tool; tool = tool->next) { /* re-translate the text */ ro_gui_set_icon_string(configure_window, tool->i, - messages_get(tool->name)); + messages_get(tool->name), true); /* update the width */ error = xwimptextop_string_width(tool->translated, -- cgit v1.2.3