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/search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'riscos/search.c') diff --git a/riscos/search.c b/riscos/search.c index ead9876d3..b58c2682c 100644 --- a/riscos/search.c +++ b/riscos/search.c @@ -247,7 +247,7 @@ void ro_gui_search_prepare(struct gui_window *g) search_current_window = g; - ro_gui_set_icon_string(dialog_search, ICON_SEARCH_TEXT, ""); + ro_gui_set_icon_string(dialog_search, ICON_SEARCH_TEXT, "", true); ro_gui_set_icon_selected_state(dialog_search, ICON_SEARCH_CASE_SENSITIVE, false); ro_gui_set_icon_selected_state(dialog_search, @@ -326,7 +326,7 @@ bool ro_gui_search_keypress(wimp_key *key) void start_search(bool forwards) { int string_len; - char *string; + const char *string; int i = 0; string = ro_gui_get_icon_string(dialog_search, ICON_SEARCH_TEXT); @@ -874,7 +874,7 @@ void show_all(bool all) void show_status(bool found) { ro_gui_set_icon_string(dialog_search, ICON_SEARCH_STATUS, - found ? "" : messages_get("NotFound")); + found ? "" : messages_get("NotFound"), true); } #endif -- cgit v1.2.3