mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-13 14:29:20 +03:00
Our hook function needs to be in UserData, not PickHook, for window.class reasons.
This commit is contained in:
parent
439deddba1
commit
0d9023148d
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user