diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-06-30 22:37:05 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-06-30 22:37:05 +0100 |
commit | 846b53485474211a24248c9b0d5cc4205104a772 (patch) | |
tree | 8700086c923f5df423735c68707059af31710fa6 /amiga/gui.c | |
parent | 01271f4061bbc8f8b26492a26e04bdbb8b9746c9 (diff) | |
download | netsurf-846b53485474211a24248c9b0d5cc4205104a772.tar.gz netsurf-846b53485474211a24248c9b0d5cc4205104a772.tar.bz2 |
Recreate the entire menu when the hotlist window is closed.
This ensures the hotlist entries in the menu are in sync with reality, and mirrors the existing hotlist toolbar update.
Diffstat (limited to 'amiga/gui.c')
-rw-r--r-- | amiga/gui.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 6e84e7077..543a77479 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3030,7 +3030,10 @@ void ami_gui_hotlist_toolbar_update(struct gui_window_2 *gwin) } } -void ami_gui_hotlist_toolbar_update_all(void) +/** + * Update hotlist toolbar and recreate the menu for all windows + */ +void ami_gui_hotlist_update_all(void) { struct nsObject *node; struct nsObject *nnode; @@ -3047,6 +3050,7 @@ void ami_gui_hotlist_toolbar_update_all(void) if(node->Type == AMINS_WINDOW) { ami_gui_hotlist_toolbar_update(gwin); + ami_menu_refresh(gwin); } } while(node = nnode); } |