dtcreate: Add missing prototypes and more (64-bit)
authorMarcin Cieslak <saper@saper.info>
Sat, 29 Sep 2012 22:16:31 +0000 (00:16 +0200)
committerJon Trulson <jon@radscan.com>
Sun, 30 Sep 2012 02:28:45 +0000 (20:28 -0600)
- Fix missing prototypes
- Fix some 64-bit related problems (XtVaGetValues)
- Fix crash on dtcreate startup in create_applicationShell1()
- Add XmeFlushIconFileCache() prototype from <Xm/IconFileP.h>

23 files changed:
cde/include/Xm/XmPrivate.h
cde/include/Xm/extractprototype.awk
cde/programs/dtcreate/AddFiletype.c
cde/programs/dtcreate/Confirmed.c
cde/programs/dtcreate/CreateActionAppShell.c
cde/programs/dtcreate/ErrorDialog.h
cde/programs/dtcreate/FileCharacteristics.c
cde/programs/dtcreate/OpenFile.c
cde/programs/dtcreate/UxXt.c
cde/programs/dtcreate/UxXt.h
cde/programs/dtcreate/af_aux.c
cde/programs/dtcreate/af_aux.h
cde/programs/dtcreate/ca_aux.c
cde/programs/dtcreate/ca_aux.h
cde/programs/dtcreate/cmncbs.c
cde/programs/dtcreate/cmncbs.h
cde/programs/dtcreate/cmnrtns.c
cde/programs/dtcreate/cmnutils.c
cde/programs/dtcreate/cmnutils.h
cde/programs/dtcreate/fileio.c
cde/programs/dtcreate/fileio.h
cde/programs/dtcreate/icon_selection_dialog.c
cde/programs/dtcreate/main.c

index af6d28a0b2bd6eb9cadcb34aaa2273defc71fe83..789e24162e5eb25605d953165e416a75876c1659 100644 (file)
@@ -33,6 +33,8 @@ extern XmWidgetExtData _XmGetWidgetExtData(
 #else
                         unsigned char extType) ;
 #endif /* NeedWidePrototypes */
+/* Extracted from IconFileP.h */
+extern void XmeFlushIconFileCache(String       path);
 /* Extracted from MenuStateI.h */
 extern void _XmSetInDragMode(
                         Widget widget,
index 21011ce615b686d259b2e94886b8ef2967a1ea59..a2c6d042ebdc1a22135e7020010ce33867474afb 100644 (file)
@@ -61,3 +61,4 @@ function proto() {
 /_XmShellIsExclusive/ { proto(); }
 /_XmTextFieldSetDestination/ { proto(); }
 /_XmGetActiveTopLevelMenu/ { proto(); }
+/XmeFlushIconFileCache/ { proto(); }
index 7df5bb2eb59edb9c8e46341359261bf15377a65d..dada07fc6489d3e728e55b9e772fc28cbefd98a2 100644 (file)
@@ -54,6 +54,7 @@
 #include "dtcreate.h"
 #include "af_aux.h"
 #include "CreateActionAppShell.h"
+#include "FileCharacteristics.h"
 #include "cmncbs.h"
 
 #define CONTEXT_MACRO_ACCESS 1
@@ -255,7 +256,7 @@ static Widget   _Uxbuild_AddFiletype(void)
         int                   nbutton = 0;
         Widget                AF_ScrolledWindow;
         Widget                AF_BigForm;
-        Dimension             dim1, dim2, dim3;
+        XtArgVal /* Dimension */             dim1, dim2, dim3;
         Widget                AF_MED_IconForm, AF_TINY_IconForm;
         IconData             *pIconData;
        char                 *pre, *suf, *title;
@@ -894,9 +895,9 @@ Widget  create_AddFiletype(swidget _UxUxParent)
 {
         Widget                  rtrn;
         _UxCAddFiletype         *UxContext;
-        Dimension               dimHeight;
-        Dimension               dimWidth;
-        Dimension               dimTmp;
+        XtArgVal /* Dimension */               dimHeight;
+        XtArgVal /* Dimension */               dimWidth;
+        XtArgVal /* Dimension */               dimTmp;
         Widget                  widScrolledWindow;
         Widget                  widTmp;
 
index 2d1054d29a9a52e8ce1ebfaee7b2c8e8ef0e4664..f0234d0e0c673aac94b723ebdb6b567646414f88 100644 (file)
@@ -35,6 +35,7 @@
 #include <sys/signal.h>
 
 #include "dtcreate.h"
+#include "ca_aux.h"
 #include "UxXt.h"
 #include "CreateActionAppShell.h"
 
index 9aa41152d9881530a0ce5a99ef50f8b7d201a076..8d62812d5341ffa76ed9328839e2dc66973dfe9b 100644 (file)
 #include <X11/Shell.h>
 #include <X11/cursorfont.h>
 
+#include <Dt/Dt.h>
 #include <Dt/Icon.h>
 #include <Dt/Action.h>
+#include <Dt/HourGlass.h>
+#include <Dt/Wsm.h>
 
 #include "dtcreate.h"
 #include "UxXt.h"
+#include "af_aux.h"
 #include "ca_aux.h"
 #include "cmncbs.h"
 #include "cmnrtns.h"
+#include "fileio.h"
 #include "Confirmed.h"
+#include "ErrorDialog.h"
 
 #define CONTEXT_MACRO_ACCESS 1
 #include "CreateActionAppShell.h"
@@ -73,7 +79,7 @@
        Includes, Defines, and Global variables from the Declarations Editor:
 *******************************************************************************/
 
-Dimension winheight, xprtheight, newheight, wintypeheight;
+XtArgVal /* Dimension */ winheight, xprtheight, newheight, wintypeheight;
 Widget    FileTypes;
 
 /*******************************************************************************
@@ -484,7 +490,7 @@ static  void    activateCB_WindowTypeOptionMenu( Widget UxWidget,
                                            XtPointer UxCallbackArg)
 {
   AD.fsFlags &= (~(CA_WT_XWINDOWS | CA_WT_TERM | CA_WT_PERMTERM));
-  switch ((int)UxClientData) {
+  switch ((int)(XtArgVal)UxClientData) {
     case CA_WT_XWINDOWS :
          AD.fsFlags |= CA_WT_XWINDOWS;
          break;
@@ -516,7 +522,7 @@ static Widget   _Uxbuild_CreateActionAppShell(void)
         Widget               CA_WindowType_Pane;
         Widget               CA_WindowType_OptionMenu;
         char                 mnemonic[2];
-        Dimension            dim1, dim2;
+        XtArgVal /* Dimension */        dim1, dim2;
         Widget               CA_MED_IconForm, CA_TINY_IconForm, CA_LRG_IconForm;
         IconData             *pIconData;
 
index 1636c3a8eaa199dd8aaa250b3be8026a6c48ab67..1c3fd26856d57f091072abe88723c5470281a8e8 100644 (file)
@@ -42,7 +42,7 @@ extern Widget   ErrorDialog;
 *******************************************************************************/
 
 
-void    display_error_message (Widget parent, char *message);
+extern void    display_error_message (Widget parent, char *message);
 
 
 #endif  /* _ERRORDIALOG_H_INCLUDED */
index b922c69ac93329bbde87e05697382e9fc1762d0a..d53264b4c5e9c73f07bd1ea341d4c453ee49a0cc 100644 (file)
@@ -31,6 +31,7 @@
 #include <stdio.h>
 #include <sys/stat.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <Xm/Xm.h>
 #include <Xm/MwmUtil.h>
@@ -39,6 +40,7 @@
 #include <Xm/RowColumn.h>
 #include <Xm/Form.h>
 #include <Xm/ToggleBG.h>
+#include <Xm/Text.h>
 #include <Xm/TextF.h>
 #include <Xm/Label.h>
 #include <Xm/PushBG.h>
@@ -48,6 +50,9 @@
 #include "UxXt.h"
 #include "dtcreate.h"
 #include "cmncbs.h"
+#include "cmnrtns.h"
+#include "cmnutils.h"
+#include "ErrorDialog.h"
 
 #define CONTEXT_MACRO_ACCESS 1
 #include "FileCharacteristics.h"
@@ -167,6 +172,7 @@ ushort GetContentsType(void)
   } else if (XmToggleButtonGadgetGetState(FC_LongToggle)) {
     return((ushort)CA_FT_CNTLONG);
   }
+  /* NOTREACHED */
 }
 
 /******************************************************************************/
@@ -345,7 +351,7 @@ void ParseAndUpdateID(FiletypeData *pFtD)
 /*****************************************************************************/
 void CalculateAND(void)
 {
-  Boolean set1, set2, set3, set4;
+  XtArgVal /* Boolean */ set1, set2, set3, set4;
   int     cnt;
 
   XtVaGetValues(FC_NameOrPathToggle, XmNset, &set1, NULL);
@@ -408,7 +414,7 @@ static  void    valueChangedCB_FC_PermissionToggle(Widget UxWidget,
                                           XtPointer UxClientData,
                                           XtPointer UxCallbackArg)
 {
-  Boolean set;
+  XtArgVal /* Boolean */ set;
 
   XtVaGetValues(UxWidget, XmNset, &set, NULL);
   XtSetSensitive(FC_PermissionLabel, set);
@@ -467,7 +473,7 @@ static  void    valueChangedCB_FC_ContentsToggle( Widget UxWidget,
                                                  XtPointer UxClientData,
                                                  XtPointer UxCallbackArg)
 {
-  Boolean set;
+  XtArgVal /* Boolean */ set;
 
   XtVaGetValues(UxWidget, XmNset, &set, NULL);
   XtSetSensitive(FC_ContentsLabel, set);
@@ -483,7 +489,7 @@ static  void    valueChangedCB_FC_NameOrPathToggle(Widget UxWidget,
                                                    XtPointer UxCallbackArg)
 
 {
-  Boolean set;
+  XtArgVal /* Boolean */ set;
 
   XtVaGetValues(UxWidget, XmNset, &set, NULL);
   XtSetSensitive(FC_NamePatternLabel, set);
@@ -1315,9 +1321,9 @@ static Widget   _Uxbuild_FileCharacteristics(void)
 Widget  create_FileCharacteristics( swidget _UxUxParent )
 {
         Widget            rtrn;
-        Dimension         dimHeight;
-        Dimension         dimWidth;
-        Dimension         dimTmp;
+        XtArgVal /* Dimension */          dimHeight;
+        XtArgVal /* Dimension */          dimWidth;
+        XtArgVal /* Dimension */          dimTmp;
         Widget            widScrolledWindow;
         Widget            widTmp;
 
index df3c1777c6d464564a847f634fc89b9d110c2348..60f4137745539679020ca69c53850953a5177e0f 100644 (file)
@@ -37,6 +37,7 @@
 #include "UxXt.h"
 #include "dtcreate.h"
 #include "cmnrtns.h"
+#include "cmncbs.h"
 #include "ca_aux.h"
 #include "fileio.h"
 
@@ -132,7 +133,7 @@ static  void    helpCallback_OpenFile( Widget UxWidget,
         UxOpenFileContext = UxContext =
                         (_UxCOpenFile *) UxGetContext( UxWidget );
         {
-        DisplayHelpDialog(UxWidget, HELP_OPENFILE, UxCallbackArg);
+        DisplayHelpDialog(UxWidget, (XtPointer)HELP_OPENFILE, UxCallbackArg);
         }
         UxOpenFileContext = UxSaveCtx;
 }
index 648c9b4dd58eb7e8eb88c758e90bc7008cfa27ac..d1ce040e5fc70dc31528550c5debbededffde43b 100644 (file)
@@ -128,7 +128,7 @@ CREATION:       Visual Edge Software            Sept 19/91
 -----------------------------------------------------------------------------*/
 static  int     handle_dialog_child( Widget wgt, void (*manage_func)(Widget) )
 {
-        int     i, num_children;
+        XtArgVal i, num_children;
         Widget  *children;
         int     error_flag = UX_ERROR;
 
@@ -284,7 +284,7 @@ void    UxDeleteContextCB( Widget wgt, XtPointer client_data,
 
         (void) XDeleteContext( XtDisplay( UxTopLevel ),
                                (Window) wgt,
-                               (XContext) client_data );
+                               (XContext)(XtArgVal) client_data );
 }
 
 /******************************************************************************
@@ -323,7 +323,7 @@ int     UxPutContext( Widget wgt, caddr_t context )
                 return ( UX_ERROR );
 
         XtAddCallback (wgt, XmNdestroyCallback,
-                        UxDeleteContextCB, (XtPointer) xcontext_id);
+                        UxDeleteContextCB, (XtPointer)(XtArgVal) xcontext_id);
 
         return ( UX_NO_ERROR );
 }
index 76eec8a3324e3ad78d7939d130145002fd0406c6..0dd7cf4b13a0c59abe4776a1d253769712e01dc0 100644 (file)
@@ -170,6 +170,7 @@ extern  void            UxMrmRegisterClass( char *, Widget (*)(Widget, String, A
 /* The following are declarations of the functions in UxXt.c */
 
 
+extern  void*          UxNewContext (size_t size, int isSubclass);
 extern  int             UxPopupInterface( Widget wgt, XtGrabKind grab_flag );
 extern  int             UxPopdownInterface( Widget wgt );
 extern  int             UxDestroyInterface( Widget wgt);
index 466271b05da2b9e554737de6027091405e1b3f14..561925c9c7f8ab14eb706af66cb6025a65706723 100644 (file)
@@ -43,6 +43,7 @@
 #include <Xm/RowColumnP.h>
 #include <Xm/MessageB.h>
 #include <Xm/FileSB.h>
+#include <Xm/List.h>
 #include <sys/stat.h>
 #if defined(AIXV3)
 #    include <sys/dir.h>
 
 #include "dtcreate.h"
 #include "af_aux.h"
+#include "cmncbs.h"
 #include "cmnutils.h"
 #include "cmnrtns.h"
+#include "ErrorDialog.h"
+#include "FileCharacteristics.h"
 
 /******************************************************************************/
 /*                                                                            */
@@ -145,7 +149,8 @@ void activateCB_filetype_icon (Widget wid, XtPointer client_data,
     printf("DblClick icon callback.\n");
 #endif
 
-    activateCB_edit_icon(wid, CA_FILETYPE_ICONS, cbs);
+    activateCB_edit_icon(wid, (XtPointer)CA_FILETYPE_ICONS,
+       (XmPushButtonCallbackStruct *)cbs /* unused anyway */);
 
   }
 
index 6348297c17ec7d5f5e87b5366a383235b45f4850..8a59ce13bc41d6bcd14d29c58b8c484f0c036dd7 100644 (file)
@@ -88,6 +88,7 @@ void getAF_PrintCmd (FiletypeData *);
 
 void init_AddFiletype (FiletypeData *);
 void free_Filetypedata(FiletypeData *);
+void init_AddFiletype_dialog_fields(FiletypeData *pFtD);
 void clear_AddFiletype_dialog_fields(void);
 void AddFiletypeToList();
 void UpdateFiletypeDataArray();
index 74f08e15cc2871a1177f1a0119aa7544c5efadc6..29f5ebaa6ff2b26a7ba10cb6f55991b4bc982b28 100644 (file)
 #include <Dt/IconFile.h>
 
 #include "dtcreate.h"
+#include "af_aux.h"
 #include "ca_aux.h"
-#include "cmnutils.h"
+#include "cmncbs.h"
 #include "cmnrtns.h"
+#include "cmnutils.h"
 #include "CreateActionAppShell.h"
 #include "Confirmed.h"
+#include "ErrorDialog.h"
+#include "FileCharacteristics.h"
+
+/* from main.c */
+extern void RemoveTmpIconFiles( void );
 
 /******************************************************************************/
 /*                                                                            */
 /*  External Variables                                                        */
 /*                                                                            */
 /******************************************************************************/
-extern Dimension wintypeheight, winheight, xprtheight, newheight;
+extern XtArgVal /* Dimension */ wintypeheight, winheight, xprtheight, newheight;
 
 /******************************************************************************/
 /*                                                                            */
@@ -652,7 +659,7 @@ void activateCB_FileQuit (Widget wid, XtPointer cdata,
 void activateCB_ExpertOption (Widget wid, XtPointer client_data,
                               XtPointer *cbs)
 {
-  Dimension  ca_width;
+  XtArgVal /* Dimension */  ca_width;
 
   if (!XtIsManaged(XprtOptionForm)) {
      /**********************************************************************/
@@ -828,7 +835,8 @@ void activateCB_action_icon (Widget wid, XtPointer client_data,
     printf("DblClick icon callback.\n");
 #endif
 
-    activateCB_edit_icon(wid, CA_ACTION_ICONS, cbs);
+    activateCB_edit_icon(wid, (XtPointer)CA_ACTION_ICONS,
+               (XmPushButtonCallbackStruct *)cbs /* unused anyway */);
 
   }
   return;
index 41d18af766451a0ff15540a8e59046d161496dbd..dffa5295b59c9f61978136d50fa4015b8587a96c 100644 (file)
 
 #include "UxXt.h"
 
-#if defined(USL) || defined(__uxp__)
 #if !defined(_DIRENT_H)
 #include <dirent.h>
 #endif
 #if !defined(_DtIcon_h_)
 #include <Dt/Icon.h> 
 #endif 
-#endif
 
 /***************************************************************************/
 /*                                                                         */
@@ -60,6 +58,7 @@
 /*                                                                         */
 /***************************************************************************/
 
+void initAD( ActionData *pAD );
 void readCAFromGUI (struct _ActionData *ca_struct);
 void getCAactionName (struct _ActionData *ca_struct);
 void getCAdblClkCmd (struct _ActionData *ca_struct);
index e42cc4e6c57f8bc5e66eb859942b3fc9daa0f78d..5e0c3f882aece40ec5c1bb5fc5aca3259384f06a 100644 (file)
 #include "cmncbs.h"
 #include "cmnrtns.h"
 #include "CreateActionAppShell.h"
+#include "af_aux.h"
 #include "ca_aux.h"
 #include "icon_selection_dialog.h"
 
+/* from main.c */
+extern void UxDoEditPixmap(Widget wid, char *fname);
 
 /******************************************************************************/
 /* Initialize global values.                                                  */
@@ -68,7 +71,7 @@ void activateCB_open_FindSet (Widget find_set_button, XtPointer cdata,
                               XmFileSelectionBoxCallbackStruct *cbstruct)
 {
   Widget filter;
-  Boolean use_bm = False;
+  XtArgVal /* Boolean */ use_bm = False;
   static char *use_bm_filter = "*.m.bm";
   static char *use_pm_filter = "*.m.pm";
   char *search_path;
@@ -201,7 +204,7 @@ void activateCB_edit_icon (Widget wid, XtPointer client_data,
 
   if (bIconEditorDisplayed) return;
 
-  if ((int)client_data == CA_ACTION_ICONS) {
+  if ((int)(XtArgVal)client_data == CA_ACTION_ICONS) {
      IsActionIcons = True;
      widSelectedIcon = get_selected_action_icon();
      widEditSource = CreateActionAppShell;
@@ -278,7 +281,7 @@ void DisplayHelpDialog(Widget wid, XtPointer client_data, XtPointer cbs)
   XtSetArg(args[i], DtNhelpVolume, "CreatAct"); i++;
   XtSetArg(args[i], DtNlocationId, pszTopic); i++;
 
-  switch ((int)client_data) {
+  switch ((XtArgVal)client_data) {
      case HELP_OVERVIEW:
                          strcpy(pszTopic, "_hometopic");
                          break;
index 343bfaa640734ab6cbf327674710b2628e84d687..435e1120aa7d945c94dffee082f0e56996ae5b34 100644 (file)
@@ -48,6 +48,8 @@ void activateCB_open_FindSet (Widget,XtPointer,XmFileSelectionBoxCallbackStruct
 void activateCB_edit_icon (Widget,XtPointer,XmPushButtonCallbackStruct *);
 void DisplayHelpDialog (Widget, XtPointer, XtPointer);
 void helpCB_general (Widget, XtPointer, XtPointer);
+void createCB_IconGadget(Widget wid, Boolean bActionIcons, enum icon_size_range IconSize);
+
 
 
 #endif /* _CMNCBS_H_INCLUDED */
index 38faa1c1d419dbe9f6b9ad8a25416ce5f61cb87b..84a160d368e7074f61e12e3c541f323b6592fb71 100644 (file)
 /*****************************************************************************/
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 #include <Dt/Icon.h>
 #include <X11/cursorfont.h>
 #include "UxXt.h"
 #include <libgen.h>
+#include <Dt/HourGlass.h>
 
 #include "dtcreate.h"
 #include "CreateActionAppShell.h"
@@ -51,7 +53,7 @@ char * ReplaceSpaces(char *pszName)
   char *ptr;
 
   newName = (char *)XtMalloc(strlen(pszName) + 1);
-  memset(newName, 0, sizeof(newName));
+  memset(newName, 0, strlen(pszName) + 1);
   strcpy(newName, pszName);
   ptr = strrchr(newName, ' ');
   if (ptr) {
@@ -185,7 +187,7 @@ char * GetCoreName(char *pszFullName)
      name = pszFullName;
   }
   newName = (char *)malloc(strlen(name) + 1);
-  memset(newName, 0, sizeof(newName));
+  memset(newName, 0, strlen(name) + 1);
   strcpy(newName, name);
   ptr = strrchr(newName, '.');
   if (ptr) {
@@ -210,7 +212,7 @@ void load_icons (Widget wid, XtPointer client_data,
   char          *full_name, *path_and_base_name, *type_name, *size_name;
   char          *base_name;
   char          *ptr;
-  int           iSource;
+  XtArgVal /* int */     iSource;
   FiletypeData  *pFtD;
 
   /*****************************************/
index 2ea8ba846ecb180f8500791ae906bdde1f786540..b98c156e0329980fa6c9b57ece4de88b7dd143b4 100644 (file)
@@ -34,6 +34,7 @@
 #include <Xm/RowColumnP.h>
 #include <Xm/MessageB.h>
 #include <Xm/Text.h>
+#include <Xm/List.h>
 #include "cmnutils.h"
 
 
@@ -119,7 +120,7 @@ return (text_string);
 /********************************************************************************/
 void delete_all_list_items (Widget list)
 {
-int item_count = 0;
+XtArgVal /* int */ item_count = 0;
 
 XtVaGetValues (list, XmNitemCount, &item_count, NULL);
 if (item_count > 0) {
index 0db8f09f13adc6c3e7788857b924c66287816d37..a96119fcffa68a568da9401209991e8866359b7e 100644 (file)
@@ -55,6 +55,8 @@ void show_warning_dialog (void);
 Widget show_working_dialog (void);
 void show_info_dialog (void);
 void free_XmStringTable (XmStringTable table);
-
+void clear_text (Widget textfield);
+void clear_text_field (Widget textfield);
+void delete_all_list_items (Widget list);
 
 #endif /* _CMNUTILS_H_INCLUDED */
index c7547c2c7c2fce8983115f3338b98694356f6708..9ba48bea61b2af767dadf8ed41a85d82a10c0db0 100644 (file)
@@ -23,7 +23,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <sys/types.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #include <Dt/Icon.h>
 
@@ -31,6 +33,8 @@
 #include "dtcreate.h"
 #include "cmnrtns.h"
 #include "fileio.h"
+#include "parser.h"
+#include "ErrorDialog.h"
 
 #define COMMENT_CHAR      '#'
 #define MAX_KEY           10000
@@ -836,9 +840,14 @@ char * CreateIconName(char *pszDirName, char *pszBaseName, enum icon_size_range
     case Medium_Icon :
                strcpy(pszSize, MEDIUM_EXT);
                break;
+    case Small_Icon :
+               strcpy(pszSize, SMALL_EXT);
+               break;
     case Tiny_Icon :
                strcpy(pszSize, TINY_EXT);
                break;
+    case None_Selected :
+               pszSize[0] = 0;
   }
   if (bIsMask) {
      strcat(pszSize, "_m");
index 9e3f68d9d826d8b25d95a610272120b4da9dccd6..7fa168713406f0904c2b954d47708c8856c62d62 100644 (file)
 /*                                                                         */
 /***************************************************************************/
 
-ushort  WriteDefinitionFile(char *, ActionData *);
-ushort  WriteActionFile(ActionData *);
-Boolean check_file_exists(char *);
-int     OpenDefinitionFile(char *, ActionData *);
-ushort  CopyIconFiles(ActionData *);
-char *  CreateIconName(char *, char *, enum icon_size_range, char *, Boolean);
-Boolean ActionHasIcon (void);
-Boolean FiletypeHasIcon (FiletypeData *);
+extern ushort  WriteDefinitionFile(char *, ActionData *);
+extern ushort  WriteActionFile(ActionData *);
+extern Boolean check_file_exists(char *);
+extern int     OpenDefinitionFile(char *, ActionData *);
+extern ushort  CopyIconFiles(ActionData *);
+extern char *  CreateIconName(char *, char *, enum icon_size_range, char *, Boolean);
+extern Boolean ActionHasIcon (void);
+extern Boolean FiletypeHasIcon (FiletypeData *);
 
 
 #endif /* _FILEIO_H_INCLUDED */
index eaed00dd6fe96a396c1085a58628de36f8b9688d..67b48fc67fa3f884d08c6e2484ba0a7d28af04c7 100644 (file)
@@ -50,6 +50,7 @@
 #include <Xm/Form.h>
 #include <Xm/RowColumn.h>
 #include <Xm/MessageB.h>
+#include <Xm/XmPrivate.h> /* XmeFlushIconFileCache */
 #include <X11/cursorfont.h>
 
 #include <Dt/Icon.h>
@@ -59,6 +60,8 @@
 #include "cmncbs.h"
 #include "cmnrtns.h"
 #include "cmnutils.h"
+#include "fileio.h"
+#include "ErrorDialog.h"
 
 /*******************************************************************************
        Includes, Defines, and Global variables from the Declarations Editor:
@@ -1315,7 +1318,7 @@ void    resizeCB_clipWindow( Widget UxWidget,
   Widget     widvScrollbar;
   Widget     widRowColumn;
   int        increment;
-  Dimension  height;
+  XtArgVal /* Dimension */  height;
 
   XtVaGetValues(XtParent(UxWidget), XmNverticalScrollBar, &widvScrollbar, NULL);
   widRowColumn = (Widget)UxClientData;
index dec3062a368cd84566d5ccdbad1e73338d467f3a..b9deaa56752d695f1b28e403245b5b66804d8bcc 100644 (file)
 #include <Xm/Xm.h>
 #include <Xm/Protocols.h>
 #include <Xm/VendorSEP.h>
+#include <Xm/XmPrivate.h> /* XmeFlushIconFileCache */
+#include <Dt/Action.h>
+#include <Dt/GetDispRes.h>
 #include <Dt/Icon.h>
 #include <Dt/EnvControlP.h>
 #include <Dt/UserMsg.h>
+#include <Dt/Session.h>
+#include <Dt/Wsm.h>
 
 #define GETXMSTRING(s, m, d)   XmStringCreateLocalized(GETMESSAGE(s,m,d))
 #define CLASS_NAME             "Dtcreate"
@@ -60,6 +65,8 @@ extern XmWidgetExtData _XmGetWidgetExtData(
 #include "dtcreate.h"
 #include "ca_aux.h"
 #include "cmnrtns.h"
+#include "ErrorDialog.h"
+#include "fileio.h"
 
 #ifdef __TOOLTALK
 #include <Tt/tttk.h>
@@ -89,7 +96,7 @@ int             UxScreen;
  * Insert application global declarations here
  *---------------------------------------------*/
 
-extern Dimension wintypeheight;
+extern XtArgVal /* Dimension */ wintypeheight;
 
 /*  Structure used on a save session to see if a dt is iconic  */
 typedef struct {
@@ -533,7 +540,7 @@ void RemoveTmpIconFiles( void )
 static void
 ExitCB (Widget dialog, XtPointer client_data, XtPointer call_data)
 {
-    exit((int) client_data);
+    exit((int)(XtArgVal) client_data);
 }
 
 void
@@ -753,7 +760,7 @@ Tt_callback_action IconEdit_tt_handler( Tt_message m, Tt_pattern p )
           display_error_message(XtParent(pIconData->wid), errPtr);
           XtFree(errPtr);
            tt_release( ttMark );
-           return;
+           return (TT_CALLBACK_CONTINUE);
         }
 
         /*******************************************************************/
@@ -796,7 +803,7 @@ Tt_callback_action IconEdit_tt_handler( Tt_message m, Tt_pattern p )
              XtFree(errPtr);
               tt_release( ttMark );
               if (tmpfd > -1) close(tmpfd);
-              return;
+              return (TT_CALLBACK_CONTINUE);
            }
 
         /*******************************************************************/
@@ -847,7 +854,7 @@ Tt_callback_action IconEdit_tt_handler( Tt_message m, Tt_pattern p )
              XtFree(errPtr);
               tt_release( ttMark );
               if (tmpfd > -1) close(tmpfd);
-              return;
+              return (TT_CALLBACK_CONTINUE);
            }
 
            /****************************************************************/
@@ -873,7 +880,7 @@ Tt_callback_action IconEdit_tt_handler( Tt_message m, Tt_pattern p )
                  display_error_message(XtParent(pIconData->wid), errPtr);
                 XtFree(errPtr);
                  tt_release( ttMark );
-                 return;
+                 return (TT_CALLBACK_CONTINUE);
               }
 
 #ifdef DEBUG
@@ -900,7 +907,7 @@ Tt_callback_action IconEdit_tt_handler( Tt_message m, Tt_pattern p )
                 XtFree(errPtr);
                  tt_release( ttMark );
                  if (tmpfd > -1) close(tmpfd);
-                 return;
+                 return (TT_CALLBACK_CONTINUE);
               }
 
            /****************************************************************/
@@ -1175,6 +1182,7 @@ void UxDoEditPixmap(Widget wid, char *fname)
 /*                                                                           */
 /*                                                                           */
 /*****************************************************************************/
+int
 main(int argc, char *argv[])
 {
         /*-----------------------------------------------------------