diff lwlib/xlwcheckbox.c @ 4522:fc7067b7f407

Backout last patch; forgot to specify file.
author Stephen J. Turnbull <stephen@xemacs.org>
date Wed, 29 Oct 2008 03:37:16 +0900
parents 383ab474a241
children 726060ee587c
line wrap: on
line diff
--- a/lwlib/xlwcheckbox.c	Tue Oct 28 10:38:26 2008 +0900
+++ b/lwlib/xlwcheckbox.c	Wed Oct 29 03:37:16 2008 +0900
@@ -40,7 +40,6 @@
 #include <X11/StringDefs.h>
 #include ATHENA_XawInit_h_
 #include "../src/xmu.h"
-#include "xt-wrappers.h"
 #include "xlwcheckboxP.h"
 
 
@@ -90,12 +89,10 @@
 
 
 
-#define	offset(field)	XtOffsetOf(CheckboxRec, checkbox.field)
-#define res(name,_class,intrepr,type,member,extrepr,value) \
-  Xt_RESOURCE (name, _class, intrepr, type, offset(member), extrepr, value)
+#define	offset(field)	XtOffsetOf(CheckboxRec, field)
 static	XtResource	resources[] = {
-  res (XtNtristate, XtCTristate, XtRBoolean, Boolean, tristate,
-       XtRImmediate, FALSE),
+  {XtNtristate, XtCTristate, XtRBoolean, sizeof(Boolean),
+    offset(checkbox.tristate), XtRImmediate, (XtPointer)FALSE},
 } ;
 #undef	offset
 
@@ -130,7 +127,7 @@
 CheckboxClassRec checkboxClassRec = {
   {
     (WidgetClass) SuperClass,		/* superclass		*/
-    (String) "Checkbox",		/* class_name		*/
+    "Checkbox",				/* class_name		*/
     sizeof(CheckboxRec),		/* size			*/
     CheckboxClassInit,			/* class_initialize	*/
     NULL,				/* class_part_initialize  */