diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-07-03 16:55:00 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-07-03 16:55:00 +0100 |
commit | 65bf58e4a1999fca0de1279e143f714acc19fe8d (patch) | |
tree | 38a043b326bc531a8b8cecc0774a3c7e835eac71 /frontends/amiga/menu.h | |
parent | 313c48b8a15b6ebe683ceb8a995c62e2e0e97616 (diff) | |
download | netsurf-65bf58e4a1999fca0de1279e143f714acc19fe8d.tar.gz netsurf-65bf58e4a1999fca0de1279e143f714acc19fe8d.tar.bz2 |
Remove ami_menu_toggle_checked global
Diffstat (limited to 'frontends/amiga/menu.h')
-rwxr-xr-x | frontends/amiga/menu.h | 14 |
1 files changed, 13 insertions, 1 deletions
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 |