HOOKF(void, ami_menu_item_browser_localhistory, APTR, window, struct IntuiMessage *) { struct gui_window_2 *gwin; GetAttr(WINDOW_UserData, (Object *)window, (ULONG *)&gwin); ami_history_open(gwin->gw); }
static void ami_menu_item_browser_localhistory(struct Hook *hook, APTR window, struct IntuiMessage *msg) { struct gui_window_2 *gwin; GetAttr(WINDOW_UserData, (Object *)window, (ULONG *)&gwin); if(gwin->bw && gwin->bw->history) ami_history_open(gwin->bw, gwin->bw->history); }