summaryrefslogtreecommitdiff
path: root/riscos/window.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-08-05 01:23:04 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-08-05 01:23:04 +0000
commitc40fc354b3783502ce0c9be1629380acb10c0570 (patch)
tree27076646b9e6041439a5e082b1cb99d67045b0ac /riscos/window.c
parent039362166c2d31dd23931332b6af94bf274d2635 (diff)
downloadnetsurf-c40fc354b3783502ce0c9be1629380acb10c0570.tar.gz
netsurf-c40fc354b3783502ce0c9be1629380acb10c0570.tar.bz2
- 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
Diffstat (limited to 'riscos/window.c')
-rw-r--r--riscos/window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/riscos/window.c b/riscos/window.c
index 571ed9af0..34725155e 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -1017,13 +1017,13 @@ void gui_window_set_url(struct gui_window *g, const char *url)
{
wimp_caret caret;
os_error *error;
- char *toolbar_url;
+ const char *toolbar_url;
if (!g->toolbar)
return;
ro_gui_set_icon_string(g->toolbar->toolbar_handle,
- ICON_TOOLBAR_URL, url);
+ ICON_TOOLBAR_URL, url, true);
ro_gui_force_redraw_icon(g->toolbar->toolbar_handle,
ICON_TOOLBAR_FAVICON);
@@ -1083,7 +1083,7 @@ void gui_window_stop_throbber(struct gui_window *g)
if (g->toolbar) {
strcpy(throb_buf, "throbber0");
ro_gui_set_icon_string(g->toolbar->toolbar_handle,
- ICON_TOOLBAR_THROBBER, throb_buf);
+ ICON_TOOLBAR_THROBBER, throb_buf, true);
if ((g->toolbar->descriptor) && (g->toolbar->descriptor->throbber_redraw))
ro_gui_force_redraw_icon(g->toolbar->toolbar_handle,
ICON_TOOLBAR_THROBBER);
@@ -2014,7 +2014,7 @@ void ro_gui_throb(void)
top_g->throbber = 1;
sprintf(throb_buf, "throbber%i", top_g->throbber);
ro_gui_set_icon_string(top_g->toolbar->toolbar_handle,
- ICON_TOOLBAR_THROBBER, throb_buf);
+ ICON_TOOLBAR_THROBBER, throb_buf, true);
if (top_g->toolbar->descriptor->throbber_redraw)
ro_gui_force_redraw_icon(top_g->toolbar->toolbar_handle,
ICON_TOOLBAR_THROBBER);
@@ -2278,7 +2278,7 @@ bool ro_gui_window_keypress(wimp_key *key)
struct content *content;
wimp_window_state state;
int y;
- char *toolbar_url;
+ const char *toolbar_url;
os_error *error;
wimp_pointer pointer;
float scale;
@@ -2378,7 +2378,7 @@ bool ro_gui_window_keypress(wimp_key *key)
return false;
ro_gui_url_complete_close(NULL, 0);
ro_gui_set_icon_string(g->toolbar->toolbar_handle,
- ICON_TOOLBAR_URL, "www.");
+ ICON_TOOLBAR_URL, "www.", true);
xwimp_set_caret_position(g->toolbar->toolbar_handle,
ICON_TOOLBAR_URL, 0, 0, -1, 4);
ro_gui_url_complete_start(g);