summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-11-04 01:19:46 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-11-04 01:19:46 +0000
commit010039686d6bf0605a4874fee05c99e3eb3f3c98 (patch)
treecaaa76504142e0ac524b6d8b22d0448b0a18b435 /riscos/gui.c
parent5fd222bd5396e246c0e126cf355d378fd8944c30 (diff)
downloadnetsurf-010039686d6bf0605a4874fee05c99e3eb3f3c98.tar.gz
netsurf-010039686d6bf0605a4874fee05c99e3eb3f3c98.tar.bz2
[project @ 2004-11-04 01:19:46 by rjw]
Toolbar separator icons are now displayed. svn path=/import/netsurf/; revision=1342
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index af3b3c263..22b35a9b5 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -743,34 +743,21 @@ void ro_gui_null_reason_code(void)
void ro_gui_redraw_window_request(wimp_draw *redraw)
{
struct gui_window *g;
- osbool more;
- os_error *error;
if (redraw->w == history_window)
ro_gui_history_redraw(redraw);
else if (redraw->w == hotlist_window)
ro_gui_hotlist_redraw(redraw);
+ else if ((hotlist_toolbar) && (hotlist_toolbar->toolbar_handle == redraw->w))
+ ro_gui_theme_redraw(hotlist_toolbar, redraw);
else if (redraw->w == dialog_debug)
ro_gui_debugwin_redraw(redraw);
else if ((g = ro_gui_window_lookup(redraw->w)) != NULL)
ro_gui_window_redraw(g, redraw);
+ else if ((g = ro_gui_toolbar_lookup(redraw->w)) != NULL)
+ ro_gui_theme_redraw(g->toolbar, redraw);
else {
- error = xwimp_redraw_window(redraw, &more);
- if (error) {
- LOG(("xwimp_redraw_window: 0x%x: %s",
- error->errnum, error->errmess));
- warn_user("WimpError", error->errmess);
- return;
- }
- while (more) {
- error = xwimp_get_rectangle(redraw, &more);
- if (error) {
- LOG(("xwimp_get_rectangle: 0x%x: %s",
- error->errnum, error->errmess));
- warn_user("WimpError", error->errmess);
- return;
- }
- }
+ ro_gui_dialog_redraw(redraw);
}
}