diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-09-07 23:05:34 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-09-07 23:05:34 +0000 |
commit | 289cca466d9eae24c88415834758c6392e86e3b6 (patch) | |
tree | 9d0f50d4a8a8743a25c0bb52e36198661ebeb161 /riscos/menus.c | |
parent | 101c87958dfeb769c697136d221a2a1c63929e65 (diff) | |
download | netsurf-289cca466d9eae24c88415834758c6392e86e3b6.tar.gz netsurf-289cca466d9eae24c88415834758c6392e86e3b6.tar.bz2 |
[project @ 2004-09-07 23:05:34 by rjw]
Updates for new theme format along with a few minor bug fixes.
svn path=/import/netsurf/; revision=1269
Diffstat (limited to 'riscos/menus.c')
-rw-r--r-- | riscos/menus.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/riscos/menus.c b/riscos/menus.c index 7c6685947..250db9ae7 100644 --- a/riscos/menus.c +++ b/riscos/menus.c @@ -1532,9 +1532,16 @@ static void ro_gui_menu_prepare_toolbars(void) { browser_toolbar_menu->entries[index].icon_flags &= ~wimp_ICON_SHADED; browser_toolbar_menu->entries[index].menu_flags &= ~wimp_MENU_TICKED; } - if (toolbar->display_buttons) browser_toolbar_menu->entries[0].menu_flags |= wimp_MENU_TICKED; + if ((toolbar->descriptor) && (toolbar->descriptor->theme)) { + if (toolbar->display_buttons) browser_toolbar_menu->entries[0].menu_flags |= wimp_MENU_TICKED; + if (toolbar->display_throbber) browser_toolbar_menu->entries[2].menu_flags |= wimp_MENU_TICKED; + } else { + for (index = 0; index < 3; index += 2) { + browser_toolbar_menu->entries[index].icon_flags |= wimp_ICON_SHADED; + browser_toolbar_menu->entries[index].menu_flags &= ~wimp_MENU_TICKED; + } + } if (toolbar->display_url) browser_toolbar_menu->entries[1].menu_flags |= wimp_MENU_TICKED; - if (toolbar->display_throbber) browser_toolbar_menu->entries[2].menu_flags |= wimp_MENU_TICKED; if (toolbar->display_status) browser_toolbar_menu->entries[3].menu_flags |= wimp_MENU_TICKED; } else { for (index = 0; index < 4; index++) { |