mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix to different compile warnings.
Fix to multiple int-conversion Removal of duplicated function definition in dtudcfonted/util.h Added XtEventHandler prototypes to mtfgui
This commit is contained in:
parent
707cc1256f
commit
f9790767f3
8 changed files with 33 additions and 57 deletions
|
@ -80,7 +80,9 @@ static char vista_errmsg[1024];
|
||||||
void (*dberr_exit) (int) = exit;
|
void (*dberr_exit) (int) = exit;
|
||||||
|
|
||||||
/* non AusText user should #define to -1 */
|
/* non AusText user should #define to -1 */
|
||||||
#define dtsearch_catd -1
|
/* the nl_types functions, will discard all catalogs */
|
||||||
|
/* with -1 as Message catalog descriptor type. */
|
||||||
|
#define dtsearch_catd ((nl_catd)-1)
|
||||||
/* non AusText user should #define to stderr */
|
/* non AusText user should #define to stderr */
|
||||||
#define aa_stderr stderr
|
#define aa_stderr stderr
|
||||||
|
|
||||||
|
|
|
@ -7065,14 +7065,14 @@ static struct named_integer CallbackReasons[] = {
|
||||||
{ "CR_TEAR_OFF_DEACTIVATE", XmCR_TEAR_OFF_DEACTIVATE },
|
{ "CR_TEAR_OFF_DEACTIVATE", XmCR_TEAR_OFF_DEACTIVATE },
|
||||||
{ "CR_OBSCURED_TRAVERSAL", XmCR_OBSCURED_TRAVERSAL },
|
{ "CR_OBSCURED_TRAVERSAL", XmCR_OBSCURED_TRAVERSAL },
|
||||||
{ "CR_PROTOCOLS", 6666 },
|
{ "CR_PROTOCOLS", 6666 },
|
||||||
{ NULL, NULL },
|
{ NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static struct named_integer HelpCallbackReasons[] = {
|
static struct named_integer HelpCallbackReasons[] = {
|
||||||
{ "HELP_CR_CLOSE", DtCR_HELP_CLOSE },
|
{ "HELP_CR_CLOSE", DtCR_HELP_CLOSE },
|
||||||
{ "HELP_CR_LINK_ACTIVATE", DtCR_HELP_LINK_ACTIVATE },
|
{ "HELP_CR_LINK_ACTIVATE", DtCR_HELP_LINK_ACTIVATE },
|
||||||
{ NULL, NULL },
|
{ NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -99,5 +99,5 @@ fsym(
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return(NULL);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1272,7 +1272,7 @@ static ModifierState modifierTable[] = {
|
||||||
{"Mod4Mask", Mod4Mask},
|
{"Mod4Mask", Mod4Mask},
|
||||||
{"Mod5Mask", Mod5Mask},
|
{"Mod5Mask", Mod5Mask},
|
||||||
{"ShiftMask", ShiftMask},
|
{"ShiftMask", ShiftMask},
|
||||||
{NULL, NULL},
|
{NULL, 0},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,11 @@
|
||||||
#include <X11/Intrinsic.h>
|
#include <X11/Intrinsic.h>
|
||||||
#include <Xm/MessageB.h>
|
#include <Xm/MessageB.h>
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
/* needed for intptr_t */
|
||||||
|
#include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "xoakufont.h"
|
#include "xoakufont.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,11 @@ static void musLine(int evtype, int px, int py);
|
||||||
static void musCircle(int evtype, int px, int py);
|
static void musCircle(int evtype, int px, int py);
|
||||||
static void musRect(int proc, int evtype, int px, int py);
|
static void musRect(int proc, int evtype, int px, int py);
|
||||||
static void musRegionProc(int proc, int evtype, int px, int py);
|
static void musRegionProc(int proc, int evtype, int px, int py);
|
||||||
|
#ifdef __linux__
|
||||||
|
static void musPasteProc(Widget w, XtPointer client_data, XEvent *event, Boolean*);
|
||||||
|
#else
|
||||||
static void musPasteProc(Widget w, XtPointer client_data, XEvent *event);
|
static void musPasteProc(Widget w, XtPointer client_data, XEvent *event);
|
||||||
|
#endif
|
||||||
static void rubLine(int x1, int y1, int x2, int y2);
|
static void rubLine(int x1, int y1, int x2, int y2);
|
||||||
static void rubBand(int x1, int y1, int x2, int y2);
|
static void rubBand(int x1, int y1, int x2, int y2);
|
||||||
static void rubCircle(int ox, int oy, int rx, int ry);
|
static void rubCircle(int ox, int oy, int rx, int ry);
|
||||||
|
@ -2280,7 +2284,11 @@ musRegionProc( int proc, int evtype, int px, int py )
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
static void
|
static void
|
||||||
|
#ifdef __linux__
|
||||||
|
musPasteProc(Widget w, XtPointer client_data, XEvent *event, Boolean* continue_to_dispatch)
|
||||||
|
#else
|
||||||
musPasteProc(Widget w, XtPointer client_data, XEvent *event)
|
musPasteProc(Widget w, XtPointer client_data, XEvent *event)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
static int ox=0, oy=0;
|
static int ox=0, oy=0;
|
||||||
int rc, tx, ty;
|
int rc, tx, ty;
|
||||||
|
|
|
@ -43,8 +43,11 @@
|
||||||
#include "FaLib.h"
|
#include "FaLib.h"
|
||||||
|
|
||||||
extern Widget toplevel;
|
extern Widget toplevel;
|
||||||
static void _destroy(Widget w);
|
|
||||||
void _unmap(void);
|
typedef void (*XtCallbackProc)( Widget widget, XtPointer closure, XtPointer call_data);
|
||||||
|
|
||||||
|
static void _destroy( Widget w, XtPointer closure, XtPointer call_data);
|
||||||
|
void _unmap( Widget w, XtPointer closure, XtPointer call_data);
|
||||||
|
|
||||||
extern Resource resource ;
|
extern Resource resource ;
|
||||||
|
|
||||||
|
@ -175,11 +178,7 @@ RadioButt *data)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _HPUX_SOURCE
|
|
||||||
String
|
String
|
||||||
#else
|
|
||||||
XtPointer
|
|
||||||
#endif
|
|
||||||
GetTextFieldValue(TextField *textf)
|
GetTextFieldValue(TextField *textf)
|
||||||
{
|
{
|
||||||
char *s1, *s2, *s3;
|
char *s1, *s2, *s3;
|
||||||
|
@ -645,14 +644,14 @@ format_str(Widget st, int charcnt , char *str)
|
||||||
XmStringFree(cs);
|
XmStringFree(cs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _unmap(void)
|
void _unmap( Widget w, XtPointer closure, XtPointer call_data)
|
||||||
{
|
{
|
||||||
if (notice && XtIsManaged(notice)){
|
if (notice && XtIsManaged(notice)){
|
||||||
XtUnmanageChild(notice);
|
XtUnmanageChild(notice);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _destroy(Widget w)
|
static void _destroy( Widget w, XtPointer closure, XtPointer call_data)
|
||||||
{
|
{
|
||||||
if (w){
|
if (w){
|
||||||
XtDestroyWidget(w);
|
XtDestroyWidget(w);
|
||||||
|
@ -978,7 +977,7 @@ CreateLabel( Widget owner, String name, String str )
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
Widget
|
Widget
|
||||||
CreateFrame(Widget owner, String name, XtPointer type, XtPointer thickness)
|
CreateFrame(Widget owner, String name, int type, int thickness)
|
||||||
{
|
{
|
||||||
Widget frame;
|
Widget frame;
|
||||||
Arg args[20];
|
Arg args[20];
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
#define MinimumSpace 4
|
#define MinimumSpace 4
|
||||||
|
|
||||||
/***** Exclusive Set *****/
|
/***** Exclusive Set *****/
|
||||||
|
|
||||||
typedef struct _ToggleButt {
|
typedef struct _ToggleButt {
|
||||||
Widget w;
|
Widget w;
|
||||||
char * label;
|
char * label;
|
||||||
|
@ -204,39 +203,22 @@ typedef struct _TextField {
|
||||||
XmNbottomAttachment, XmATTACH_FORM, \
|
XmNbottomAttachment, XmATTACH_FORM, \
|
||||||
XmNbottomOffset, offset, \
|
XmNbottomOffset, offset, \
|
||||||
0)
|
0)
|
||||||
|
#endif /* USE_MACRO */
|
||||||
|
|
||||||
|
|
||||||
extern Widget GetMenuWidget(MButton *buttons, int buttons_num);
|
|
||||||
extern Widget CreateFrame(Widget owner,
|
|
||||||
String name,
|
|
||||||
XtPointer type,
|
|
||||||
XtPointer thickness);
|
|
||||||
extern Widget CreateScrollBar(Widget owner,
|
|
||||||
String name,
|
|
||||||
int height,
|
|
||||||
int val,
|
|
||||||
int min,
|
|
||||||
int max,
|
|
||||||
void (*proc)());
|
|
||||||
extern Widget CreateDrawingArea(Widget owner,
|
extern Widget CreateDrawingArea(Widget owner,
|
||||||
String name,
|
String name,
|
||||||
int width,
|
int width,
|
||||||
int height,
|
int height,
|
||||||
void (*proc)(),
|
void (*proc)(),
|
||||||
int val);
|
int val);
|
||||||
extern Widget CreateLabel(Widget owner, String name, String str);
|
|
||||||
extern Widget CreateDialogAndButtons(Widget owner,
|
extern Widget CreateDialogAndButtons(Widget owner,
|
||||||
String name,
|
String name,
|
||||||
void (*delcb)(),
|
void (*delcb)(),
|
||||||
Button *btns,
|
Button *btns,
|
||||||
int btns_cnt,
|
int btns_cnt,
|
||||||
Widget *pop);
|
Widget *pop);
|
||||||
extern
|
extern String GetTextFieldValue(TextField *textf);
|
||||||
#ifdef _HPUX_SOURCE
|
|
||||||
String
|
|
||||||
#else
|
|
||||||
XtPointer
|
|
||||||
#endif
|
|
||||||
GetTextFieldValue(TextField *textf);
|
|
||||||
extern Widget CreateTemplateDialog(Widget w,
|
extern Widget CreateTemplateDialog(Widget w,
|
||||||
char *message,
|
char *message,
|
||||||
unsigned char type,
|
unsigned char type,
|
||||||
|
@ -250,41 +232,22 @@ extern Widget CreateScrollBase(Widget owner,
|
||||||
int val,
|
int val,
|
||||||
int vcnt,
|
int vcnt,
|
||||||
void (*sbproc)());
|
void (*sbproc)());
|
||||||
extern Widget CreateForm(Widget owner, String name);
|
|
||||||
|
|
||||||
Widget CreateCaptionFrame(Widget owner,
|
Widget CreateCaptionFrame(Widget owner,
|
||||||
String name,
|
String name,
|
||||||
String labelstr,
|
String labelstr,
|
||||||
int type,
|
int type,
|
||||||
int thickness);
|
int thickness);
|
||||||
#ifdef _HPUX_SOURCE
|
|
||||||
String
|
|
||||||
#else
|
|
||||||
XtPointer
|
|
||||||
#endif
|
|
||||||
GetTextFieldValue(TextField *textf);
|
|
||||||
void CreateTextField(Widget owner,
|
void CreateTextField(Widget owner,
|
||||||
String name,
|
String name,
|
||||||
String labelstr,
|
String labelstr,
|
||||||
TextField *data,
|
TextField *data,
|
||||||
int maxlength);
|
int maxlength);
|
||||||
void CreateMenuButtons(Widget owner, Button *buttons, int buttons_cnt);
|
void CreateMenuButtons(Widget owner, Button *buttons, int buttons_cnt);
|
||||||
Widget CreateDialogAndButtons(Widget owner,
|
|
||||||
String name,
|
|
||||||
void (*delcb)(),
|
|
||||||
Button *btns,
|
|
||||||
int btns_cnt,
|
|
||||||
Widget *pop);
|
|
||||||
Widget GuiInitialize(XtAppContext *app,
|
Widget GuiInitialize(XtAppContext *app,
|
||||||
String class_name,
|
String class_name,
|
||||||
int *ac,
|
int *ac,
|
||||||
String av[]);
|
String av[]);
|
||||||
Widget CreateDrawingArea(Widget owner,
|
|
||||||
String name,
|
|
||||||
int width,
|
|
||||||
int height,
|
|
||||||
void (*proc)(),
|
|
||||||
int val);
|
|
||||||
void AddLeftAttachWidget(Widget w, Widget ref, int offset);
|
void AddLeftAttachWidget(Widget w, Widget ref, int offset);
|
||||||
void AddLeftAttachForm(Widget w, int offset);
|
void AddLeftAttachForm(Widget w, int offset);
|
||||||
void AddTopAttachWidget(Widget w, Widget ref, int offset);
|
void AddTopAttachWidget(Widget w, Widget ref, int offset);
|
||||||
|
@ -315,8 +278,8 @@ Widget CreateForm(Widget owner, String name);
|
||||||
Widget CreateLabel(Widget owner, String name, String str);
|
Widget CreateLabel(Widget owner, String name, String str);
|
||||||
Widget CreateFrame(Widget owner,
|
Widget CreateFrame(Widget owner,
|
||||||
String name,
|
String name,
|
||||||
XtPointer type,
|
int type,
|
||||||
XtPointer thickness);
|
int thickness);
|
||||||
Widget CreateRowColumn(Widget owner,
|
Widget CreateRowColumn(Widget owner,
|
||||||
String name,
|
String name,
|
||||||
int layout,
|
int layout,
|
||||||
|
@ -331,4 +294,3 @@ Widget CreateScrollBar(Widget owner,
|
||||||
int max,
|
int max,
|
||||||
void (*proc)());
|
void (*proc)());
|
||||||
|
|
||||||
#endif /* USE_MACRO */
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue