2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <workbench/workbench.h>
7 #include <workbench/icon.h>
9 #include <proto/icon.h>
13 int main(int argc
, char **argv
)
15 STRPTR newToolTypes
[] =
18 "Tooltypes are actually free-form text",
23 struct DiskObject
*icon
= GetIconTags
25 "writetooltypes", ICONGETA_FailIfUnavailable
, FALSE
, TAG_DONE
30 STRPTR
*oldToolTypes
= icon
->do_ToolTypes
;
32 icon
->do_ToolTypes
= newToolTypes
;
33 if (!PutIconTags("writetooltypes", icon
, TAG_DONE
))
35 printf("ERROR: Failed to write icon.\n");
37 icon
->do_ToolTypes
= oldToolTypes
;
43 printf("ERROR: Failed to open icon for file\n");