#include <Xm/XmosP.h> /* for INT_MAX */
#include <Dt/DtMsgsP.h>
#include "ComboBoxP.h"
+#include <Xm/DrawP.h>
#include <Xm/DisplayP.h>
+#include <Xm/List.h>
#include <Xm/ComboBox.h> /* for redirecting utility functions */
#include "DtWidgetI.h" /* for _Dt thread-safety macros */
+/* some unpublished Motif interfaces */
+#include <Xm/XmPrivate.h>
/*
* MotifBc
#include <X11/Xos_r.h>
#include <Xm/GadgetP.h>
#include <Xm/DrawP.h>
+#include <Xm/XmP.h>
#include <Dt/Control.h>
#include <Dt/ControlP.h>
#include <Xm/ManagerP.h>
#include <Dt/MacrosP.h>
#include <langinfo.h>
#include "DtWidgetI.h"
+#include "DtSvcInternal.h"
/******** Public Function Declarations ********/
else
{
G_Set (g) = False;
- G_BlinkTimer (g) = NULL;
+ G_BlinkTimer (g) = 0;
G_BlinkElapsed (g) = 0;
G_Busy (g) = 0;
(*call_callback) ((DtIconGadget) g, G_Callback (g), XmCR_BUSY_STOP, NULL);
G_ControlType (new) != XmCONTROL_MAIL &&
G_ControlType (new) != XmCONTROL_MONITOR)
{
- G_ControlType (new) == XmCONTROL_NONE;
+ G_ControlType (new) = XmCONTROL_NONE;
}
if (G_ControlType (new) == XmCONTROL_SWITCH)
{
XtInheritTranslations, /* default_translations */
NULL, /* get_resources */
- NULL, /* num_get_resources */
+ 0, /* num_get_resources */
NULL, /* get_cont_resources */
0, /* num_get_cont_resources */
XmInheritParentProcess, /* parent_process */
XtSetArg (al[ac], XmNlabelString, string[i]); ac++;
}
XtSetArg (al[ac], XmNchildType, XmBUTTON); ac++;
- sprintf (button_name, "%s_%d\0", M_Name (new), i+1);
+ sprintf (button_name, "%s_%d", M_Name (new), i+1);
btn = XmCreatePushButtonGadget ((Widget)new, button_name, al, ac);
XtManageChild (btn);
XtAddCallback (btn, XmNactivateCallback,
--- /dev/null
+/* Additional import */
+extern Pixmap _DtGetMask(Screen *screen, char *image_name);
*/
loadError = Check4EnoughMemory( file_length );
if (loadError == DtEDITOR_INSUFFICIENT_MEMORY)
- returnVal == loadError;
+ returnVal = loadError;
else {
/*
#include "EditorP.h"
#include "DtWidgetI.h"
+#include <Xm/XmPrivate.h> /* _XmStringSourceGetString */
void
_DtEditorResetUndo(
# define NO_putwc
#elif defined(CSRG_BASED)
# include <wctype.h>
+# include <wchar.h>
#endif /* linux */
#include <sys/wait.h>
#include <Xm/MessageB.h>
#include <Xm/MwmUtil.h>
#include <Xm/TextF.h>
+#include <Xm/LabelG.h>
+#include <Xm/SeparatoG.h>
+#include <Xm/PushBG.h>
+#include <Xm/ToggleBG.h>
+#include <Xm/RowColumn.h>
/* Need the following for _DtOkString */
#include <Dt/DtP.h>
#include <Dt/DtMsgsP.h>
+#include <Dt/HourGlass.h>
#include "DtWidgetI.h"
#endif /* _AIX */
#if !(defined(sun) && (_XOPEN_VERSION==3))
+#if !(defined(__FreeBSD__))
# define iswblank(wc) iswctype((wc),blnkclass)
# undef getwc /* Use the libc function */
+#endif
#if defined(__osf__) || defined(_AIX) /* __osf__ || _AIX */
/* function prototype for wctype() was changed to meet spec1170 */
/* digital compiler flagged warning */
/* XmForm Part
*/
{
- (int) NULL, /* extension */
+ NULL, /* extension */
},
/* DtEditor Part
*/
{
- (int) NULL, /* extension */
+ 0, /* extension */
}
};
#include <Dt/DtMsgsP.h>
#include <Dt/Dnd.h>
#include "DtWidgetI.h"
+#include "DtSvcInternal.h"
+#include <Xm/XmPrivate.h> /* Motif _XmEnterGadget and friends */
/*-------------------------------------------------------------
** Public Interface
(WidgetClass)&dtIconCacheObjClassRec, /* secondary class */
(XtInitProc)SecondaryObjectCreate, /* creation proc */
(XmGetSecResDataFunc) GetIconClassSecResData, /* getSecResData */
- {NULL}, /* fast subclass */
+ {0}, /* fast subclass */
GetValuesPrehook, /* get_values prehook */
GetValuesPosthook, /* get_values posthook */
NULL, /* classPartInitPrehook */
G_Armed (new) = False;
- G_Mask (new) = NULL;
+ G_Mask (new) = None;
if (G_Pixmap (new) == XmUNSPECIFIED_PIXMAP)
- G_Pixmap (new) = NULL;
+ G_Pixmap (new) = None;
if (G_ImageName (new) || G_Pixmap (new))
{
{
/* warning? */
name = NULL;
- G_Pixmap (new) = NULL;
+ G_Pixmap (new) = None;
}
}
XmeGetDefaultRenderTable ((Widget)new, XmBUTTON_FONTLIST);
G_FontList (new) = XmFontListCopy (G_FontList (new));
- if ((unsigned int)G_String (new) == (unsigned int)XmUNSPECIFIED_STRING)
+ if (G_String (new) == XmUNSPECIFIED_STRING)
G_String (new) = (_XmString) NULL;
if (G_String (new))
else
{
name = NULL;
- G_Pixmap (new) = NULL;
+ G_Pixmap (new) = None;
w = 0;
h = 0;
}
if (G_Pixmap (new) != G_Pixmap (current))
{
- if ((G_Pixmap (new) != NULL) &&
+ if ((G_Pixmap (new) != None) &&
(G_PixmapWidth (new) == w) &&
(G_PixmapHeight (new) == h))
{
if (G_Mask(new) != XmUNSPECIFIED_PIXMAP)
XmDestroyPixmap (XtScreen(new),G_Mask (current));
XmDestroyPixmap (XtScreen(new),G_Pixmap (current));
- G_Pixmap (new) = NULL;
+ G_Pixmap (new) = None;
G_PixmapWidth (new) = 0;
G_PixmapHeight (new) = 0;
}
register int window_width;
register int window_height;
- register highlight_width;
+ register int highlight_width;
CallCallbackProc call_callback;
window_width = g->rectangle.width;
else
return (False);
}
+ return (False);
}
\f
if (((G_Behavior (g) == XmICON_BUTTON) && G_Armed (g)) ||
((G_Behavior (g) == XmICON_TOGGLE) &&
- (!G_Set (g) && G_Armed (g)) ||
- (G_Set (g) && !G_Armed (g))))
+ ((!G_Set (g) && G_Armed (g)) ||
+ (G_Set (g) && !G_Armed (g)))))
shadow_type = XmSHADOW_IN;
else
shadow_type = XmSHADOW_OUT;
{
/* No pixmap to load */
G_ImageName(new) = NULL;
- G_Pixmap(new) = NULL;
+ G_Pixmap(new) = None;
G_PixmapWidth(new) = 0;
G_PixmapHeight(new) = 0;
}
#include <Threads.tmpl>
#ifndef DtWidgetDefines
-# define DtWidgetDefines -DI18N_MSG -DXK_MISCELLANY -DMULTIBYTE
+# define DtWidgetDefines -DI18N_MSG -DMULTIBYTE
#endif
DEFINES = DtWidgetDefines
#if defined(LinuxArchitecture)
#include <Xm/LabelP.h>
#include <Xm/MenuUtilP.h>
#include <Xm/DrawP.h>
+#include <Xm/XmP.h>
+
+#include <Xm/XmPrivate.h> /* _XmRecordEvent, _XmSetInDragMode, ... */
#include <X11/keysymdef.h>
#include "DtWidgetI.h"
Boolean flag = FALSE;
Boolean adjustWidth = FALSE;
Boolean adjustHeight = FALSE;
- unsigned char rowcol_type = NULL;
+ unsigned char rowcol_type = 0;
Display *dpy = XtDisplay(nw);
Boolean menu_glyph_changed = FALSE;
Boolean adjustWidth = FALSE;
Boolean adjustHeight = FALSE;
Widget parent = XtParent(new_w);
- unsigned char rowcol_type = NULL;
+ unsigned char rowcol_type = 0;
char *name = NULL;
if ((XmIsRowColumn (parent))) {
#include <Dt/TitleBox.h>
#include "DtWidgetI.h"
+#include <ctype.h>
extern void _DtRegisterNewConverters( void ) ;
#include "EditorP.h"
#include <Xm/TextF.h>
#include <Xm/MessageB.h>
+#include <Xm/List.h>
#include <ctype.h>
#include <limits.h>
#include <Dt/DtMsgsP.h>
+#include <Dt/HourGlass.h>
#include "DtWidgetI.h"
+#include <Xm/XmPrivate.h> /* _XmStringSourceGetString */
+
#define X_INCLUDE_STRING_H
#define XOS_USE_XT_LOCKING
#include <X11/Xos_r.h>
*/
#include <Dt/DtMsgsP.h>
+#include <Xm/DrawP.h>
+#include <Xm/XmP.h>
#include <Xm/RepType.h>
#include "SpinBoxP.h"
#include "DtWidgetI.h"
+#include <Xm/XmPrivate.h> /* _XmShellIsExclusive */
+
#ifdef I18N_MSG
#include <langinfo.h>
#endif
}
else {
xm_string = (Items(spin))[Position(spin)];
- if (text = GetTextString(xm_string)) {
+ if ((text = GetTextString(xm_string))) {
XtSetArg(arg, XmNvalue, text);
XtSetValues(Text(spin), &arg, 1);
XtFree(text);
repeat_delay, timer_dispatch, (XtPointer)spin);
/* Try to get Xevent */
- if (arrow_data = (XmArrowButtonCallbackStruct*)arrow_call_data)
+ if ((arrow_data = (XmArrowButtonCallbackStruct*)arrow_call_data))
last_event = arrow_data->event;
/*
/* To keep Position of SpinBox up to date */
if (Position(spin) > 0 &&
- (Position(spin) >= total_items) || pos < Position(spin) )
+ ((Position(spin) >= total_items) || pos < Position(spin)) )
Position(spin) = Position(spin) - 1;
if (pos < ItemCount(spin)) {
#include <Xm/GadgetP.h>
#endif /* RiversVersion == _31 */
#include <Xm/DrawP.h>
+#include <Xm/XmP.h>
#include <Dt/TitleBoxP.h>
#include <Dt/MacrosP.h>
#include <Dt/DtMsgsP.h>
#include "DtWidgetI.h"
+#include <Xm/XmPrivate.h> /* _XmClearShadowType */