summaryrefslogtreecommitdiff
path: root/frontends/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-15 16:13:32 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-15 16:13:32 +0000
commitb8640956d48af03f2f7f6c07e66958fa825a4972 (patch)
tree6716760646680acd7a85149fe77e199fb12baec4 /frontends/amiga
parent8e7603e6a263eb765df4886a321537f209d88245 (diff)
downloadnetsurf-b8640956d48af03f2f7f6c07e66958fa825a4972.tar.gz
netsurf-b8640956d48af03f2f7f6c07e66958fa825a4972.tar.bz2
Ignore the other check toggle stuff with menuclass
The one thing we are toggling is actioned immediately when potentially changing the state in the prefs window
Diffstat (limited to 'frontends/amiga')
-rw-r--r--frontends/amiga/gui_menu.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/frontends/amiga/gui_menu.c b/frontends/amiga/gui_menu.c
index 3f053a571..6b33194cb 100644
--- a/frontends/amiga/gui_menu.c
+++ b/frontends/amiga/gui_menu.c
@@ -671,7 +671,7 @@ void ami_gui_menu_set_disabled(struct Window *win, struct Menu *menu, int item,
void ami_gui_menu_update_checked(struct gui_window_2 *gwin)
{
if(LIB_IS_AT_LEAST((struct Library *)IntuitionBase, 54, 6)) {
- //needs re-writing for MenuClass
+ /* Irrelevant when using MenuClass */
return;
}
@@ -780,11 +780,21 @@ void ami_gui_menu_update_disabled(struct gui_window *g, struct hlcache_handle *c
void ami_gui_menu_set_check_toggled(void)
{
+ if(LIB_IS_AT_LEAST((struct Library *)IntuitionBase, 54, 6)) {
+ /* Irrelevant when using MenuClass */
+ return;
+ }
+
ami_menu_check_toggled = true;
}
bool ami_gui_menu_get_check_toggled(void)
{
+ if(LIB_IS_AT_LEAST((struct Library *)IntuitionBase, 54, 6)) {
+ /* Irrelevant when using MenuClass */
+ return false;
+ }
+
bool check_toggled = ami_menu_check_toggled;
ami_menu_check_toggled = false;
return check_toggled;