From 0114cc825d8a23ff99ce3a667aebc0ed21b0339f Mon Sep 17 00:00:00 2001 From: Steve Fryatt Date: Wed, 29 Jan 2014 16:54:34 +0000 Subject: 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. --- riscos/menus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscos/menus.h') 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); -- cgit v1.2.3