summaryrefslogtreecommitdiff
path: root/riscos/theme.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-11-22 23:06:49 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-11-22 23:06:49 +0000
commit9c6094944bdaf52f46982f9b0dffb88a5f71907b (patch)
treebd31dd0aff6596e34e65bad1b9b61dec8f7f2dbf /riscos/theme.c
parent1105d9c39741f0429dc5f5549b12ab351bcf94b3 (diff)
downloadnetsurf-9c6094944bdaf52f46982f9b0dffb88a5f71907b.tar.gz
netsurf-9c6094944bdaf52f46982f9b0dffb88a5f71907b.tar.bz2
[project @ 2004-11-22 23:06:49 by rjw]
Stop scroll wheels from moving the toolbar svn path=/import/netsurf/; revision=1370
Diffstat (limited to 'riscos/theme.c')
-rw-r--r--riscos/theme.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/riscos/theme.c b/riscos/theme.c
index 220296609..d4d201b01 100644
--- a/riscos/theme.c
+++ b/riscos/theme.c
@@ -1254,12 +1254,14 @@ bool ro_gui_theme_process_toolbar(struct toolbar *toolbar, int width) {
/* Re-attach to the parent
*/
toolbar->toolbar_current = width;
- if ((toolbar->reformat_buttons) && (parent) && (old_height != toolbar->height)) {
+ if (toolbar->reformat_buttons) {
extent.x1 = 16384;
extent.y0 = 0;
extent.y1 = toolbar->height;
xwimp_set_extent(toolbar->toolbar_handle, &extent);
- ro_gui_theme_attach_toolbar(toolbar, parent);
+ if ((parent) && (old_height != toolbar->height)) {
+ ro_gui_theme_attach_toolbar(toolbar, parent);
+ }
}
toolbar->reformat_buttons = false;
}