From: Frederic Koehler Date: Thu, 9 Aug 2012 21:11:11 +0000 (-0400) Subject: dtwm: Cleanup some implicit definitions X-Git-Tag: 2.2.0b~83^2~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=44dfebe9d2b33828c07ba7769472fef65ad47788;p=oweals%2Fcde.git dtwm: Cleanup some implicit definitions Mostly this is adding appropriate #includes and declarations, but for WmImage.c we also change from using the proper name for XmeGetMask, rather than the identical but renamed version _DtGetMask which is not exported in any header. --- diff --git a/cde/programs/dtwm/Callback.c b/cde/programs/dtwm/Callback.c index f7259af0..3ea47a4b 100644 --- a/cde/programs/dtwm/Callback.c +++ b/cde/programs/dtwm/Callback.c @@ -58,6 +58,7 @@ #include #include #include +#include #include #include diff --git a/cde/programs/dtwm/DataBaseLoad.h b/cde/programs/dtwm/DataBaseLoad.h index 698a7c40..346cbfca 100644 --- a/cde/programs/dtwm/DataBaseLoad.h +++ b/cde/programs/dtwm/DataBaseLoad.h @@ -484,6 +484,7 @@ struct _AnimationItem extern Boolean FrontPanelReadDatabases (void); extern void InitParse(char *, ElementValue **); extern void InitializeControlFields( ElementValue *element_values, char *); +extern void InitializeSubpanelFields (ElementValue * element_values); extern void _WriteControlElementValues(ElementValue *); extern void WriteControlComponentFile(ControlData *); extern void WriteSubpanelComponentFile(SubpanelData *); diff --git a/cde/programs/dtwm/Print.c b/cde/programs/dtwm/Print.c index 32155cc6..79cbc501 100644 --- a/cde/programs/dtwm/Print.c +++ b/cde/programs/dtwm/Print.c @@ -42,6 +42,7 @@ #include
/* required for DtDbPathId type */ #include
#include
+#include
#include "DataBaseLoad.h" #include "Parse.h" diff --git a/cde/programs/dtwm/WmBackdrop.c b/cde/programs/dtwm/WmBackdrop.c index 0ee6501b..f2783a5e 100644 --- a/cde/programs/dtwm/WmBackdrop.c +++ b/cde/programs/dtwm/WmBackdrop.c @@ -45,6 +45,8 @@ static char rcsid[] = "" #define DTWM_NEED_BACKBITS #include "WmIBitmap.h" #include "WmBackdrop.h" +#include "WmError.h" +#include "WmProperty.h" #include #include #include @@ -54,6 +56,7 @@ static char rcsid[] = "" #include
#include
#include +#include #include #include #include diff --git a/cde/programs/dtwm/WmEvent.c b/cde/programs/dtwm/WmEvent.c index 40a8ab8b..f643503b 100644 --- a/cde/programs/dtwm/WmEvent.c +++ b/cde/programs/dtwm/WmEvent.c @@ -48,8 +48,10 @@ static char rcsid[] = "$XConsortium: WmEvent.c /main/7 1996/11/20 15:27:47 rswis * include extern functions */ #include "WmEvent.h" +#include "WmError.h" #ifdef WSM #include "WmBackdrop.h" +#include "WmWrkspace.h" #endif /* WSM */ #include "WmCDInfo.h" #include "WmCDecor.h" diff --git a/cde/programs/dtwm/WmFP.c b/cde/programs/dtwm/WmFP.c index 2df76791..48a81081 100644 --- a/cde/programs/dtwm/WmFP.c +++ b/cde/programs/dtwm/WmFP.c @@ -67,6 +67,7 @@ #include "UI.h" #include "WmPanelP.h" +#include "WmManage.h" #include #include diff --git a/cde/programs/dtwm/WmFeedback.c b/cde/programs/dtwm/WmFeedback.c index 1aeac4be..6413b4f7 100644 --- a/cde/programs/dtwm/WmFeedback.c +++ b/cde/programs/dtwm/WmFeedback.c @@ -43,7 +43,7 @@ static char rcsid[] = "$XConsortium: WmFeedback.c /main/6 1996/10/23 17:20:55 rs #define MWM_NEED_TIME16 #include "WmBitmap.h" - +#include "WmError.h" #include #include #include diff --git a/cde/programs/dtwm/WmHelp.c b/cde/programs/dtwm/WmHelp.c index 8e80b06f..f37d2ec6 100644 --- a/cde/programs/dtwm/WmHelp.c +++ b/cde/programs/dtwm/WmHelp.c @@ -44,7 +44,10 @@ static char rcsid[] = "" #include "WmGlobal.h" #include "WmError.h" +#include "WmFunction.h" #include "WmHelp.h" +#include "WmCDecor.h" +#include "WmResParse.h" #ifdef PANELIST #include "WmPanelP.h" #endif /* PANELIST */ diff --git a/cde/programs/dtwm/WmICCC.h b/cde/programs/dtwm/WmICCC.h index 2e02c7b5..a55ac360 100644 --- a/cde/programs/dtwm/WmICCC.h +++ b/cde/programs/dtwm/WmICCC.h @@ -31,6 +31,8 @@ /* * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */ +#ifndef _Dt_WmICCC_h_ +#define _Dt_WmICCC_h_ /* * Included Files: */ @@ -143,3 +145,4 @@ typedef struct _PropWMState /* PropWMState state field value: */ #define WithdrawnSTATE 0 +#endif /* _Dt_WmICCC_h_ */ diff --git a/cde/programs/dtwm/WmIPC.c b/cde/programs/dtwm/WmIPC.c index 0a7a8f10..331f43bc 100644 --- a/cde/programs/dtwm/WmIPC.c +++ b/cde/programs/dtwm/WmIPC.c @@ -38,7 +38,9 @@ static char rcsid[] = "" * Included Files: */ #include "WmGlobal.h" +#include "WmProtocol.h" #include +#include
#include
#include
#include
@@ -51,6 +53,8 @@ static char rcsid[] = "" #include "WmFunction.h" #include "WmWrkspace.h" #include "WmIPC.h" +#include "WmXSMP.h" +#include "WmPanelP.h" #include "DataBaseLoad.h" diff --git a/cde/programs/dtwm/WmIconBox.h b/cde/programs/dtwm/WmIconBox.h index 37d22a61..0f83b1a7 100644 --- a/cde/programs/dtwm/WmIconBox.h +++ b/cde/programs/dtwm/WmIconBox.h @@ -43,6 +43,7 @@ extern void CheckIconBoxResize (ClientData *pCD, unsigned int changedValues, extern Boolean CheckIconBoxSize (IconBoxData *pIBD); extern void DeleteIconFromBox (IconBoxData *pIBD, ClientData *pCD); extern void DeleteIconInfo (IconBoxData *pIBD, ClientData *pCD); +extern void DestroyIconBox (WmWorkspaceData *pWS); extern Boolean ExpandVirtualSpace (IconBoxData *pIBD, int newWidth, int newHeight); extern Boolean ExtendIconList (IconBoxData *pIBD, int incr); @@ -60,6 +61,13 @@ extern void IconScrollVisibleCallback (Widget w, caddr_t client_data, #endif extern void IconActivateCallback (Widget w, caddr_t client_data, XmAnyCallbackStruct *call_data); +#ifdef PANELIST +extern void IconBoxPopUp (WmWorkspaceData *pWS, Boolean up); +extern Boolean IconBoxShowing (WmWorkspaceData *pWS); +#else /* PANELIST */ +extern void IconBoxPopUp (WmWorkspaceData *pWS, ControlWindowStruct *pCW, Boolean up); +extern Boolean IconBoxShowing (WmWorkspaceData *pWS, ControlWindowStruct *pCW); +#endif /* PANELIST */ extern Boolean IconVisible (ClientData *pCD); extern IconInfo *InsertIconInfo (IconBoxData *pIBD, ClientData *pCD, Widget theWidget); diff --git a/cde/programs/dtwm/WmImage.c b/cde/programs/dtwm/WmImage.c index bd970798..29f72214 100644 --- a/cde/programs/dtwm/WmImage.c +++ b/cde/programs/dtwm/WmImage.c @@ -255,7 +255,7 @@ Pixmap MakeNamedIconPixmap (ClientData *pCD, String iconName) } else { - mask = _DtGetMask (XtScreen(PSD_FOR_CLIENT(pCD)->screenTopLevelW1), + mask = XmeGetMask (XtScreen(PSD_FOR_CLIENT(pCD)->screenTopLevelW1), (sIconFileName == NULL) ? iconName : sIconFileName); if (mask == XmUNSPECIFIED_PIXMAP) { diff --git a/cde/programs/dtwm/WmInitWs.c b/cde/programs/dtwm/WmInitWs.c index 2f77f9a5..d040cce1 100644 --- a/cde/programs/dtwm/WmInitWs.c +++ b/cde/programs/dtwm/WmInitWs.c @@ -59,6 +59,7 @@ static char rcsid[] = "$TOG: WmInitWs.c /main/18 1999/09/20 15:18:22 mgreess $" #include #include #include +#include #include #include #include @@ -78,6 +79,7 @@ typedef struct #ifdef WSM #include
#include
+#include
#include
#include
#include
@@ -2677,6 +2679,8 @@ VirtKeys4DIN( if( !prop_existed ) { bindingsString = NULL ; + /* FIXME: this is an unexported openmotif procedure */ + extern void _XmVirtKeysLoadFallbackBindings(Display *dsp, String *binding); _XmVirtKeysLoadFallbackBindings( dsp, &bindingsString) ; XtFree( bindingsString) ; diff --git a/cde/programs/dtwm/WmOL.c b/cde/programs/dtwm/WmOL.c index 5708a2a9..f40fe770 100644 --- a/cde/programs/dtwm/WmOL.c +++ b/cde/programs/dtwm/WmOL.c @@ -37,6 +37,8 @@ static char rcsid[] = "$XConsortium: WmOL.c /main/4 1995/11/01 11:45:08 rswiston */ #include "WmGlobal.h" #include "WmOL.h" +#include "WmProperty.h" +#include #define ValidPropertyList(pcd) ((pcd)->paInitialProperties != NULL) diff --git a/cde/programs/dtwm/WmOL.h b/cde/programs/dtwm/WmOL.h index 8936c116..e3af6e2d 100644 --- a/cde/programs/dtwm/WmOL.h +++ b/cde/programs/dtwm/WmOL.h @@ -122,6 +122,9 @@ extern Boolean HasOpenLookHints( ClientData *pCD ); extern OLWinAttr * GetOLWinAttr( ClientData *pCD ); extern Boolean GetOLDecorFlags(ClientData *pCD, Atom property, unsigned long *pDecor); +extern void InitOLCompat(void); +extern void ProcessOLDecoration(ClientData *pCD); + /* diff --git a/cde/programs/dtwm/WmParse.c b/cde/programs/dtwm/WmParse.c index 6b76c2be..21ec7518 100644 --- a/cde/programs/dtwm/WmParse.c +++ b/cde/programs/dtwm/WmParse.c @@ -66,6 +66,7 @@ static char rcsid[] = "$XConsortium: WmParse.c /main/5 1996/10/30 11:36:06 drk $ #ifdef MULTIBYTE #include #endif /* MULTIBYTE */ +#include /* * Internal routines diff --git a/cde/programs/dtwm/WmPresence.c b/cde/programs/dtwm/WmPresence.c index ece105b6..c1b2f841 100644 --- a/cde/programs/dtwm/WmPresence.c +++ b/cde/programs/dtwm/WmPresence.c @@ -38,6 +38,7 @@ static char rcsid[] = "$XConsortium: WmPresence.c /main/7 1996/10/23 17:24:56 rs #include "WmGlobal.h" #include "WmResNames.h" #include "WmHelp.h" +#include "WmError.h" #include #include @@ -47,6 +48,7 @@ static char rcsid[] = "$XConsortium: WmPresence.c /main/7 1996/10/23 17:24:56 rs #include #include #include +#include #include #include #include diff --git a/cde/programs/dtwm/WmProperty.h b/cde/programs/dtwm/WmProperty.h index 25690056..b86af328 100644 --- a/cde/programs/dtwm/WmProperty.h +++ b/cde/programs/dtwm/WmProperty.h @@ -30,6 +30,7 @@ /* $XConsortium: WmProperty.h /main/4 1995/11/01 11:48:54 rswiston $ */ /* * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */ +#include "WmICCC.h" extern SizeHints * GetNormalHints (ClientData *pCD); extern void ProcessWmProtocols (ClientData *pCD); @@ -38,6 +39,9 @@ extern void SetMwmInfo (Window propWindow, long flags, Window wmWindow); #ifdef WSM void SetMwmSaveSessionInfo (Window wmWindow); #endif /* WSM */ +extern void GetDtWmRequest (WmScreenData *pSD, char **pszReq, Boolean *pmore); +extern void GetDtSessionHints (WmScreenData *pSD, int sNum); + extern PropWMState * GetWMState (Window window); extern void SetWMState (Window window, int state, Window icon); extern PropMwmHints * GetMwmHints (ClientData *pCD); diff --git a/cde/programs/dtwm/WmResParse.c b/cde/programs/dtwm/WmResParse.c index a0630a02..717f6fcf 100644 --- a/cde/programs/dtwm/WmResParse.c +++ b/cde/programs/dtwm/WmResParse.c @@ -7315,6 +7315,9 @@ void ProcessMotifBindings (void) XDeleteProperty (DISPLAY, RootWindow (DISPLAY, 0), XInternAtom (DISPLAY, "_MOTIF_DEFAULT_BINDINGS", False)); + /* FIXME: unexported openmotif procedures */ + extern Boolean _XmVirtKeysLoadFileBindings(Display *dsp, String *binding); + extern void _XmVirtKeysLoadFallbackBindings(Display *dsp, String *binding); if (_XmVirtKeysLoadFileBindings (fileName, &bindings) == True) { XChangeProperty (DISPLAY, RootWindow(DISPLAY, 0), XInternAtom (DISPLAY, "_MOTIF_BINDINGS", False), diff --git a/cde/programs/dtwm/WmResParse.h b/cde/programs/dtwm/WmResParse.h index 60e266f7..40603081 100644 --- a/cde/programs/dtwm/WmResParse.h +++ b/cde/programs/dtwm/WmResParse.h @@ -48,9 +48,9 @@ extern Boolean FindDtSessionMatch(int commandArgc, WmScreenData *pSD, char **pWorkSpaceList, char *clientMachine); -extern void WmDtGetHelprgs(char *args, - unsigned char** volume, - unsigned char** topic, +extern void WmDtGetHelpArgs(char *args, + unsigned char* volume, + unsigned char* topic, int *argsCount); extern void GetActionIndex (int tableSize, int *actionIndex); extern void GetFunctionTableValues (int *execIndex, int *nopIndex, diff --git a/cde/programs/dtwm/WmResource.h b/cde/programs/dtwm/WmResource.h index 2bd4d952..22718307 100644 --- a/cde/programs/dtwm/WmResource.h +++ b/cde/programs/dtwm/WmResource.h @@ -46,6 +46,7 @@ extern void SetStdGlobalResourceValues (void); extern void ProcessScreenListResource (void); extern void ProcessAppearanceResources (WmScreenData *pSD); extern void ProcessGlobalScreenResources (void); +extern void ProcessPresenceResources (WmScreenData *pSD); extern void ProcessScreenResources (WmScreenData *pSD, unsigned char *screenName); #ifdef WSM extern void ProcessWorkspaceList (WmScreenData *pSD); diff --git a/cde/programs/dtwm/WmWinState.c b/cde/programs/dtwm/WmWinState.c index 94040a5f..9e63a4b2 100644 --- a/cde/programs/dtwm/WmWinState.c +++ b/cde/programs/dtwm/WmWinState.c @@ -42,6 +42,7 @@ static char rcsid[] = "$XConsortium: WmWinState.c /main/6 1996/06/20 09:39:39 rs #include "WmGlobal.h" #include "WmICCC.h" #include "WmProtocol.h" +#include "WmIPC.h" /* diff --git a/cde/programs/dtwm/WmWrkspace.c b/cde/programs/dtwm/WmWrkspace.c index 8ded58f0..ae3d0f2b 100644 --- a/cde/programs/dtwm/WmWrkspace.c +++ b/cde/programs/dtwm/WmWrkspace.c @@ -42,9 +42,11 @@ static char rcsid[] = "$XConsortium: WmWrkspace.c /main/7 1996/10/23 17:26:33 rs #include "WmHelp.h" #include "WmResNames.h" #include "WmIPlace.h" +#include "WmInitWs.h" #include #include "WmICCC.h" #include +#include #include
#include
#include diff --git a/cde/programs/dtwm/WmWrkspace.h b/cde/programs/dtwm/WmWrkspace.h index 9df7edf9..15328a20 100644 --- a/cde/programs/dtwm/WmWrkspace.h +++ b/cde/programs/dtwm/WmWrkspace.h @@ -39,6 +39,7 @@ static char rcsid[] = "" extern void ChangeToWorkspace( WmWorkspaceData *pNewWS) ; +extern void ChangeWorkspaceTitle( WmWorkspaceData *pWS, char * pchTitle); extern Boolean DuplicateWorkspaceName ( WmScreenData *pSD, unsigned char *name,