1 #include <workbench/workbench.h>
2 #include <workbench/icon.h>
4 #include <proto/icon.h>
8 int main(int argc
, char **argv
)
10 STRPTR newToolTypes
[] =
13 "Tooltypes are actually free-form text",
18 struct DiskObject
*icon
= GetIconTags
20 "writetooltypes", ICONGETA_FailIfUnavailable
, FALSE
, TAG_DONE
25 STRPTR
*oldToolTypes
= icon
->do_ToolTypes
;
27 icon
->do_ToolTypes
= newToolTypes
;
28 if (!PutIconTags("writetooltypes", icon
, TAG_DONE
))
30 printf("ERROR: Failed to write icon.\n");
32 icon
->do_ToolTypes
= oldToolTypes
;
38 printf("ERROR: Failed to open icon for file\n");