diff options
author | Steve Fryatt <stevef@netsurf-browser.org> | 2014-01-29 16:54:34 +0000 |
---|---|---|
committer | Steve Fryatt <stevef@netsurf-browser.org> | 2014-01-29 16:54:34 +0000 |
commit | 0114cc825d8a23ff99ce3a667aebc0ed21b0339f (patch) | |
tree | 5d6e0a143cb02d5a655bfe13f187a726221981f4 /riscos/menus.h | |
parent | 829b4fd4546670512f8543c8bc8ed80372566f08 (diff) | |
download | netsurf-0114cc825d8a23ff99ce3a667aebc0ed21b0339f.tar.gz netsurf-0114cc825d8a23ff99ce3a667aebc0ed21b0339f.tar.bz2 |
Provide a dedicated interface for destroying open menus.
Add ro_gui_menu_destroy(), so that this specific task does not share the same code as the more general task of tidying up after menus have been closed by other means.
The original ro_gui_menu_closed() now simply cleans up from a known (or assumed) closure, without forcing a closure itself.
Diffstat (limited to 'riscos/menus.h')
-rw-r--r-- | riscos/menus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscos/menus.h b/riscos/menus.h index e2269b77c..f49215f04 100644 --- a/riscos/menus.h +++ b/riscos/menus.h @@ -168,7 +168,7 @@ struct ns_menu { void ro_gui_menu_init(void); void ro_gui_menu_create(wimp_menu* menu, int x, int y, wimp_w w); -void ro_gui_menu_closed(void); +void ro_gui_menu_destroy(void); void ro_gui_popup_menu(wimp_menu *menu, wimp_w w, wimp_i i); void ro_gui_menu_window_changed(wimp_w from, wimp_w to); void ro_gui_menu_selection(wimp_selection* selection); |