Updated PCI IDs to latest snapshot.
[tangerine.git] / rom / workbench / removeappicon.c
blob707713dc3da3c84335c3c52038a34c129899a46f
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Remove an icon from Workbench's list of AppIcons.
6 Lang: English
7 */
9 #include "workbench_intern.h"
10 #include <workbench/workbench.h>
12 /*****************************************************************************
14 NAME */
16 #include <proto/workbench.h>
18 AROS_LH1(BOOL , RemoveAppIcon,
19 /* SYNOPSIS */
20 AROS_LHA(struct AppIcon *, appIcon, A0),
21 /* LOCATION */
23 struct WorkbenchBase *, WorkbenchBase, 11, Workbench)
24 /* FUNCTION
26 Try to remove an AppIcon from workbench.library's list of AppIcons.
28 INPUTS
30 appIcon -- pointer to an AppIcon got from AddAppIconA()
32 RESULT
34 TRUE if the icon could be removed, FALSE otherwise.
36 NOTES
38 You must do a final check for messages on your AppMessage port as messages
39 may have been sent between the last time you checked and the call to
40 this function.
42 EXAMPLE
44 BUGS
46 SEE ALSO
48 AddAppIconA()
50 INTERNALS
52 ******************************************************************************/
54 AROS_LIBFUNC_INIT
56 if (appIcon == NULL)
58 return FALSE;
61 LockWorkbench();
62 Remove((struct Node *)appIcon);
63 UnlockWorkbench();
65 FreeVec(appIcon);
68 Question is if we should negotiate with the (possible) workbench
69 application. Probably not... we just remove it from the list and
70 send a message to the workbench application that the icon should
71 be removed as soon as possible.
73 NotifyWorkbench(WBNOTIFY_Delete, WBNOTIFY_AppIcon, WorkbenchBase); */
75 return TRUE;
77 AROS_LIBFUNC_EXIT
78 } /* RemoveAppIcon */