* Re-renamed xm to motif (SVN rules).

git-svn-id: svn://svn.zoy.org/elk/trunk@79 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-09-04 09:23:22 +00:00
parent 3874cda315
commit 61885f04c6
32 changed files with 33 additions and 33 deletions

View File

@ -409,7 +409,7 @@ AC_OUTPUT([
lib/xlib/Makefile lib/xlib/Makefile
lib/xwidgets/Makefile lib/xwidgets/Makefile
lib/xwidgets/xaw/Makefile lib/xwidgets/xaw/Makefile
lib/xwidgets/xm/Makefile lib/xwidgets/motif/Makefile
scm/Makefile scm/Makefile
scm/slib.scm scm/slib.scm
src/Makefile src/Makefile

View File

@ -32,7 +32,7 @@
static Object Sym_Wm_Hints, Sym_Size_Hints; static Object Sym_Wm_Hints, Sym_Size_Hints;
static Object P_Iconify_Window (w, scr) Object w, scr; { static Object P_Iconify_Window (Object w, Object scr) {
Check_Type (w, T_Window); Check_Type (w, T_Window);
if (!XIconifyWindow (WINDOW(w)->dpy, WINDOW(w)->win, if (!XIconifyWindow (WINDOW(w)->dpy, WINDOW(w)->win,
Get_Screen_Number (WINDOW(w)->dpy, scr))) Get_Screen_Number (WINDOW(w)->dpy, scr)))
@ -40,7 +40,7 @@ static Object P_Iconify_Window (w, scr) Object w, scr; {
return Void; return Void;
} }
static Object P_Withdraw_Window (w, scr) Object w, scr; { static Object P_Withdraw_Window (Object w, Object scr) {
Check_Type (w, T_Window); Check_Type (w, T_Window);
if (!XWithdrawWindow (WINDOW(w)->dpy, WINDOW(w)->win, if (!XWithdrawWindow (WINDOW(w)->dpy, WINDOW(w)->win,
Get_Screen_Number (WINDOW(w)->dpy, scr))) Get_Screen_Number (WINDOW(w)->dpy, scr)))
@ -48,7 +48,7 @@ static Object P_Withdraw_Window (w, scr) Object w, scr; {
return Void; return Void;
} }
static Object P_Reconfigure_Wm_Window (w, scr, conf) Object w, scr, conf; { static Object P_Reconfigure_Wm_Window (Object w, Object scr, Object conf) {
unsigned long mask; unsigned long mask;
Check_Type (w, T_Window); Check_Type (w, T_Window);
@ -59,7 +59,7 @@ static Object P_Reconfigure_Wm_Window (w, scr, conf) Object w, scr, conf; {
return Void; return Void;
} }
static Object P_Wm_Command (w) Object w; { static Object P_Wm_Command (Object w) {
int i, ac; int i, ac;
char **av; char **av;
Object s, ret, t; Object s, ret, t;
@ -81,7 +81,7 @@ static Object P_Wm_Command (w) Object w; {
return ret; return ret;
} }
static String_List_To_Text_Property (x, ret) Object x; XTextProperty *ret; { static String_List_To_Text_Property (Object x, XTextProperty *ret) {
register i, n; register i, n;
register char **s; register char **s;
Object t; Object t;
@ -99,7 +99,7 @@ static String_List_To_Text_Property (x, ret) Object x; XTextProperty *ret; {
Alloca_End; Alloca_End;
} }
static Object Text_Property_To_String_List (p) XTextProperty *p; { static Object Text_Property_To_String_List (XTextProperty *p) {
int n; int n;
register i; register i;
char **s; char **s;
@ -119,7 +119,7 @@ static Object Text_Property_To_String_List (p) XTextProperty *p; {
return ret; return ret;
} }
static Object P_Get_Text_Property (w, a) Object w, a; { static Object P_Get_Text_Property (Object w, Object a) {
XTextProperty ret; XTextProperty ret;
Check_Type (w, T_Window); Check_Type (w, T_Window);
@ -134,7 +134,7 @@ static Object P_Get_Text_Property (w, a) Object w, a; {
return Text_Property_To_String_List (&ret); return Text_Property_To_String_List (&ret);
} }
static Object P_Set_Text_Property (w, prop, a) Object w, prop, a; { static Object P_Set_Text_Property (Object w, Object prop, Object a) {
XTextProperty p; XTextProperty p;
Check_Type (w, T_Window); Check_Type (w, T_Window);
@ -145,7 +145,7 @@ static Object P_Set_Text_Property (w, prop, a) Object w, prop, a; {
return Void; return Void;
} }
static Object P_Wm_Protocols (w) Object w; { static Object P_Wm_Protocols (Object w) {
Atom *p; Atom *p;
int i, n; int i, n;
Object ret; Object ret;
@ -169,7 +169,7 @@ static Object P_Wm_Protocols (w) Object w; {
return ret; return ret;
} }
static Object P_Set_Wm_Protocols (w, v) Object w, v; { static Object P_Set_Wm_Protocols (Object w, Object v) {
Atom *p; Atom *p;
int i, n; int i, n;
Alloca_Begin; Alloca_Begin;
@ -190,7 +190,7 @@ static Object P_Set_Wm_Protocols (w, v) Object w, v; {
return Void; return Void;
} }
static Object P_Wm_Class (w) Object w; { static Object P_Wm_Class (Object w) {
Object ret, x; Object ret, x;
XClassHint c; XClassHint c;
GC_Node; GC_Node;
@ -221,7 +221,7 @@ static Object P_Wm_Class (w) Object w; {
return ret; return ret;
} }
static Object P_Set_Wm_Class (w, name, class) Object w, name, class; { static Object P_Set_Wm_Class (Object w, Object name, Object class) {
XClassHint c; XClassHint c;
Check_Type (w, T_Window); Check_Type (w, T_Window);
@ -231,7 +231,7 @@ static Object P_Set_Wm_Class (w, name, class) Object w, name, class; {
return Void; return Void;
} }
static Object P_Set_Wm_Command (w, cmd) Object w, cmd; { static Object P_Set_Wm_Command (Object w, Object cmd) {
register i, n; register i, n;
register char **argv; register char **argv;
Object c; Object c;
@ -250,7 +250,7 @@ static Object P_Set_Wm_Command (w, cmd) Object w, cmd; {
return Void; return Void;
} }
static Object P_Wm_Hints (w) Object w; { static Object P_Wm_Hints (Object w) {
XWMHints *p; XWMHints *p;
Check_Type (w, T_Window); Check_Type (w, T_Window);
@ -267,7 +267,7 @@ static Object P_Wm_Hints (w) Object w; {
WINDOW(w)->dpy, (unsigned long)WMH.flags); WINDOW(w)->dpy, (unsigned long)WMH.flags);
} }
static Object P_Set_Wm_Hints (w, h) Object w, h; { static Object P_Set_Wm_Hints (Object w, Object h) {
unsigned long mask; unsigned long mask;
Check_Type (w, T_Window); Check_Type (w, T_Window);
@ -277,7 +277,7 @@ static Object P_Set_Wm_Hints (w, h) Object w, h; {
return Void; return Void;
} }
static Object P_Size_Hints (w, a) Object w, a; { static Object P_Size_Hints (Object w, Object a) {
long supplied; long supplied;
Check_Type (w, T_Window); Check_Type (w, T_Window);
@ -299,7 +299,7 @@ static Object P_Size_Hints (w, a) Object w, a; {
WINDOW(w)->dpy, (unsigned long)SZH.flags); WINDOW(w)->dpy, (unsigned long)SZH.flags);
} }
static Object P_Set_Size_Hints (w, a, h) Object w, a, h; { static Object P_Set_Size_Hints (Object w, Object a, Object h) {
unsigned long mask; unsigned long mask;
Check_Type (w, T_Window); Check_Type (w, T_Window);
@ -316,7 +316,7 @@ static Object P_Set_Size_Hints (w, a, h) Object w, a, h; {
return Void; return Void;
} }
static Object P_Icon_Sizes (w) Object w; { static Object P_Icon_Sizes (Object w) {
XIconSize *p; XIconSize *p;
int i, n; int i, n;
Object v; Object v;
@ -348,7 +348,7 @@ static Object P_Icon_Sizes (w) Object w; {
return v; return v;
} }
static Object P_Set_Icon_Sizes (w, v) Object w, v; { static Object P_Set_Icon_Sizes (Object w, Object v) {
register i, n; register i, n;
XIconSize *p; XIconSize *p;
Alloca_Begin; Alloca_Begin;
@ -377,7 +377,7 @@ static Object P_Set_Icon_Sizes (w, v) Object w, v; {
return Void; return Void;
} }
static Object P_Transient_For (w) Object w; { static Object P_Transient_For (Object w) {
Window win; Window win;
Disable_Interrupts; Disable_Interrupts;
@ -387,7 +387,7 @@ static Object P_Transient_For (w) Object w; {
return Make_Window (0, WINDOW(w)->dpy, win); return Make_Window (0, WINDOW(w)->dpy, win);
} }
static Object P_Set_Transient_For (w, pw) Object w, pw; { static Object P_Set_Transient_For (Object w, Object pw) {
Check_Type (w, T_Window); Check_Type (w, T_Window);
XSetTransientForHint (WINDOW(w)->dpy, WINDOW(w)->win, Get_Window (pw)); XSetTransientForHint (WINDOW(w)->dpy, WINDOW(w)->win, Get_Window (pw));
return Void; return Void;

View File

@ -32,14 +32,14 @@
Generic_Predicate (Color) Generic_Predicate (Color)
static Color_Equal (x, y) Object x, y; { static Color_Equal (Object x, Object y) {
register XColor *p = &COLOR(x)->c, *q = &COLOR(y)->c; register XColor *p = &COLOR(x)->c, *q = &COLOR(y)->c;
return p->red == q->red && p->green == q->green && p->blue == q->blue; return p->red == q->red && p->green == q->green && p->blue == q->blue;
} }
Generic_Print (Color, "#[color %lu]", POINTER(x)) Generic_Print (Color, "#[color %lu]", POINTER(x))
Object Make_Color (r, g, b) unsigned int r, g, b; { Object Make_Color (unsigned int r, unsigned int g, unsigned int b) {
Object c; Object c;
c = Find_Object (T_Color, (GENERIC)0, Match_X_Obj, r, g, b); c = Find_Object (T_Color, (GENERIC)0, Match_X_Obj, r, g, b);
@ -54,7 +54,7 @@ Object Make_Color (r, g, b) unsigned int r, g, b; {
return c; return c;
} }
XColor *Get_Color (c) Object c; { XColor *Get_Color (Object c) {
Check_Type (c, T_Color); Check_Type (c, T_Color);
return &COLOR(c)->c; return &COLOR(c)->c;
} }

View File

@ -1,4 +1,4 @@
SUBDIRS = xaw xm SUBDIRS = xaw motif
NULL = NULL =
@ -6,17 +6,17 @@ include ../xlib/Include.am
EXTRA_DIST = MISSING mkwidget.scm EXTRA_DIST = MISSING mkwidget.scm
pkglib_LTLIBRARIES = xaw.la xm.la pkglib_LTLIBRARIES = xaw.la motif.la
xaw_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB) xaw_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB)
xaw_la_CFLAGS = -I$(srcdir)/../xlib @XAW_CFLAGS@ xaw_la_CFLAGS = -I$(srcdir)/../xlib @XAW_CFLAGS@
xaw_la_LDFLAGS = -module -avoid-version xaw_la_LDFLAGS = -module -avoid-version
xaw_la_LIBADD = $(top_builddir)/src/libelk.la @XAW_LIBS@ xaw_la_LIBADD = $(top_builddir)/src/libelk.la @XAW_LIBS@
xm_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB) motif_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB)
xm_la_CFLAGS = -I$(srcdir)/../xlib @XM_CFLAGS@ motif_la_CFLAGS = -I$(srcdir)/../xlib @XM_CFLAGS@
xm_la_LDFLAGS = -module -avoid-version motif_la_LDFLAGS = -module -avoid-version
xm_la_LIBADD = $(top_builddir)/src/libelk.la @XM_LIBS@ motif_la_LIBADD = $(top_builddir)/src/libelk.la @XM_LIBS@
extensions_HEADERS = xt.h extensions_HEADERS = xt.h
extensionsdir = $(pkgincludedir)/extensions extensionsdir = $(pkgincludedir)/extensions

View File

@ -24,13 +24,13 @@
(set! type-name name) (set! type-name name)
(format f "#include \"../xt.h\"~%") (format f "#include \"../xt.h\"~%")
(case widget-set (case widget-set
(xm (motif
(format f "#include <Xm/Xm.h>~%"))) (format f "#include <Xm/Xm.h>~%")))
(if (and (not (eqv? include "")) (not (null? include))) (if (and (not (eqv? include "")) (not (null? include)))
(begin (begin
(define dir) (define dir)
(case widget-set (case widget-set
(xm (motif
(set! dir "Xm")) (set! dir "Xm"))
(xaw (xaw
(set! dir "X11/Xaw"))) (set! dir "X11/Xaw")))