mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
Merge branch 'master' into utf8-conversion, after 2.3.0a release
This commit is contained in:
commit
2e4deb41c0
13 changed files with 43 additions and 63 deletions
|
@ -1072,6 +1072,7 @@ CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
|
||||||
#define ArchitectureDefines -DOPENBSD_ARCHITECTURE
|
#define ArchitectureDefines -DOPENBSD_ARCHITECTURE
|
||||||
|
|
||||||
#define BuildLibPathVar LD_LIBRARY_PATH
|
#define BuildLibPathVar LD_LIBRARY_PATH
|
||||||
|
ICONVSYSLIB != if test -f /usr/local/include/iconv.h; then echo -liconv; else echo; fi
|
||||||
|
|
||||||
#ifndef KornShell
|
#ifndef KornShell
|
||||||
#define KornShell /usr/local/bin/ksh93
|
#define KornShell /usr/local/bin/ksh93
|
||||||
|
|
|
@ -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},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -742,7 +742,8 @@ int num_gr,
|
||||||
FalGlyphRegion *gr,
|
FalGlyphRegion *gr,
|
||||||
int code_no)
|
int code_no)
|
||||||
{
|
{
|
||||||
int code, rtn, msize, i, j, dspcode;
|
int code, rtn, msize, i, j;
|
||||||
|
long unsigned int dspcode;
|
||||||
char *ptn;
|
char *ptn;
|
||||||
|
|
||||||
if ( ( r_gpf->p_width != r_snf->bdf_width )
|
if ( ( r_gpf->p_width != r_snf->bdf_width )
|
||||||
|
|
|
@ -292,9 +292,11 @@ int main( int argc, char *argv[] )
|
||||||
} else {
|
} else {
|
||||||
fontname = (char *)0;
|
fontname = (char *)0;
|
||||||
Anafprop(
|
Anafprop(
|
||||||
fip, fpropPtr, fpropvnPtr,
|
fip, fpropPtr,
|
||||||
&fontname, &psprop, &resprop,
|
fpropvnPtr, &fontname,
|
||||||
&fplistPtr, &fplistNum
|
&fplistPtr,
|
||||||
|
&psprop, &resprop,
|
||||||
|
&fplistNum
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ mbinit(XPointer state)
|
||||||
}
|
}
|
||||||
|
|
||||||
static char
|
static char
|
||||||
mbchar(XPointer state, char *str, char *lenp)
|
mbchar(XPointer state, char *str, int *lenp)
|
||||||
{
|
{
|
||||||
XlcConv conv = ((State) state)->conv;
|
XlcConv conv = ((State) state)->conv;
|
||||||
XlcCharSet charset;
|
XlcCharSet charset;
|
||||||
|
|
|
@ -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 */
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ enum Mode {
|
||||||
|
|
||||||
const int nModes = mconnetMode + 1;
|
const int nModes = mconnetMode + 1;
|
||||||
|
|
||||||
enum { minShortrefMode = econMode };
|
const int minShortrefMode = econMode;
|
||||||
|
|
||||||
#ifdef SP_NAMESPACE
|
#ifdef SP_NAMESPACE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue