comparison 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
comparison
equal deleted inserted replaced
4521:383ab474a241 4522:fc7067b7f407
38 38
39 #include <X11/IntrinsicP.h> 39 #include <X11/IntrinsicP.h>
40 #include <X11/StringDefs.h> 40 #include <X11/StringDefs.h>
41 #include ATHENA_XawInit_h_ 41 #include ATHENA_XawInit_h_
42 #include "../src/xmu.h" 42 #include "../src/xmu.h"
43 #include "xt-wrappers.h"
44 #include "xlwcheckboxP.h" 43 #include "xlwcheckboxP.h"
45 44
46 45
47 /* by using the same size for the checkbox as for the diamond box, 46 /* by using the same size for the checkbox as for the diamond box,
48 * we can let the Radio widget do the vast majority of the work. 47 * we can let the Radio widget do the vast majority of the work.
88 <Btn1Down>,<Btn1Up>: unpress(nodraw) toggle() notify()"; 87 <Btn1Down>,<Btn1Up>: unpress(nodraw) toggle() notify()";
89 #endif 88 #endif
90 89
91 90
92 91
93 #define offset(field) XtOffsetOf(CheckboxRec, checkbox.field) 92 #define offset(field) XtOffsetOf(CheckboxRec, field)
94 #define res(name,_class,intrepr,type,member,extrepr,value) \
95 Xt_RESOURCE (name, _class, intrepr, type, offset(member), extrepr, value)
96 static XtResource resources[] = { 93 static XtResource resources[] = {
97 res (XtNtristate, XtCTristate, XtRBoolean, Boolean, tristate, 94 {XtNtristate, XtCTristate, XtRBoolean, sizeof(Boolean),
98 XtRImmediate, FALSE), 95 offset(checkbox.tristate), XtRImmediate, (XtPointer)FALSE},
99 } ; 96 } ;
100 #undef offset 97 #undef offset
101 98
102 /* Member functions */ 99 /* Member functions */
103 100
128 #define SuperClass ((RadioWidgetClass)&radioClassRec) 125 #define SuperClass ((RadioWidgetClass)&radioClassRec)
129 126
130 CheckboxClassRec checkboxClassRec = { 127 CheckboxClassRec checkboxClassRec = {
131 { 128 {
132 (WidgetClass) SuperClass, /* superclass */ 129 (WidgetClass) SuperClass, /* superclass */
133 (String) "Checkbox", /* class_name */ 130 "Checkbox", /* class_name */
134 sizeof(CheckboxRec), /* size */ 131 sizeof(CheckboxRec), /* size */
135 CheckboxClassInit, /* class_initialize */ 132 CheckboxClassInit, /* class_initialize */
136 NULL, /* class_part_initialize */ 133 NULL, /* class_part_initialize */
137 FALSE, /* class_inited */ 134 FALSE, /* class_inited */
138 CheckboxInit, /* initialize */ 135 CheckboxInit, /* initialize */