summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-12 18:46:48 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2017-01-12 18:46:48 (GMT)
commit0d9023148d2a34bd908aac38e44d449359b03438 (patch)
treea6e04823a8677e2df613389b37de0352fbf32e39
parent439deddba14f509fa0be90beff07481643178b69 (diff)
downloadnetsurf-0d9023148d2a34bd908aac38e44d449359b03438.tar.gz
netsurf-0d9023148d2a34bd908aac38e44d449359b03438.tar.bz2
Our hook function needs to be in UserData, not PickHook, for window.class reasons.
-rw-r--r--frontends/amiga/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/amiga/menu.c b/frontends/amiga/menu.c
index fc42dc9..97debb6 100644
--- a/frontends/amiga/menu.c
+++ b/frontends/amiga/menu.c
@@ -878,7 +878,7 @@ static void ami_menu_layout_mc_recursive(Object *menu_parent, struct ami_menu_da
MA_Label, md[*i]->menulab,
MA_Image, md[*i]->menuicon,
MA_Key, &md[*i]->menukey,
- MA_PickHook, &md[*i]->menu_hook,
+ MA_UserData, &md[*i]->menu_hook, /* NB: Intentionally UserData */
MA_Disabled, (md[*i]->flags & NM_ITEMDISABLED),
MA_Selected, (md[*i]->flags & CHECKED),
MA_Toggle, (md[*i]->flags & MENUTOGGLE),