2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Remove a menuitem from Workbench's list of AppMenuItems.
9 #include "workbench_intern.h"
10 #include <workbench/workbench.h>
12 /*****************************************************************************
16 #include <proto/workbench.h>
18 AROS_LH1(BOOL
, RemoveAppMenuItem
,
21 AROS_LHA(struct AppMenuItem
*, appMenuItem
, A0
),
24 struct WorkbenchBase
*, WorkbenchBase
, 13, Workbench
)
28 Try to remove an AppMenuItem from workbench.library's list of AppMenuItems.
32 Pointer to an AppMenuItem structure as returned by AddAppMenuItem().
36 TRUE if the menu item could be removed, FALSE otherwise.
40 You have to do a final check for messages on your AppMenuItem message
41 port as messages may have arrived between the last time you checked this
42 and the call to this function.
54 ******************************************************************************/
58 if (appMenuItem
== NULL
)
64 Remove((struct Node
*)appMenuItem
);
69 /* NotifyWorkbench(WBNOTIFY_Delete, WBNOTIFY_AppMenuItem, WorkbenchBase);
75 } /* RemoveAppMenuItem */