From 65bf58e4a1999fca0de1279e143f714acc19fe8d Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 3 Jul 2016 16:55:00 +0100 Subject: Remove ami_menu_toggle_checked global --- frontends/amiga/menu.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'frontends/amiga/menu.h') diff --git a/frontends/amiga/menu.h b/frontends/amiga/menu.h index 22e998439..91077b662 100755 --- a/frontends/amiga/menu.h +++ b/frontends/amiga/menu.h @@ -136,7 +136,6 @@ struct gui_window; struct gui_window_2; extern struct gui_window_2 *ami_menu_window_close; -extern bool ami_menu_check_toggled; void ami_free_menulabs(struct gui_window_2 *gwin); struct Menu *ami_menu_create(struct gui_window_2 *gwin); @@ -146,5 +145,18 @@ void ami_menu_update_disabled(struct gui_window *g, struct hlcache_handle *c); void ami_menu_free_glyphs(void); void ami_menu_free(struct gui_window_2 *gwin); +/** + * Sets that an item linked to a toggle menu item has been changed. + */ +void ami_menu_set_check_toggled(void); + +/** + * Gets if the menu needs updating because an item linked + * to a toggle menu item has been changed. + * NB: This also *clears* the state + * + * \return true if the menus need refreshing + */ +bool ami_menu_get_check_toggled(void); #endif -- cgit v1.2.3