Mercurial > hg > xemacs-beta
comparison lwlib/xlwcheckbox.c @ 4528:726060ee587c g++-warning-removal-2008-10-28
First draft of g++ 4.3 warning removal patch. Builds. *Needs ChangeLogs.*
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Wed, 29 Oct 2008 04:06:33 +0900 |
parents | fc7067b7f407 |
children | 5460287a3327 |
comparison
equal
deleted
inserted
replaced
4524:03ba50f7ecd7 | 4528:726060ee587c |
---|---|
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" | |
43 #include "xlwcheckboxP.h" | 44 #include "xlwcheckboxP.h" |
44 | 45 |
45 | 46 |
46 /* by using the same size for the checkbox as for the diamond box, | 47 /* by using the same size for the checkbox as for the diamond box, |
47 * we can let the Radio widget do the vast majority of the work. | 48 * we can let the Radio widget do the vast majority of the work. |
87 <Btn1Down>,<Btn1Up>: unpress(nodraw) toggle() notify()"; | 88 <Btn1Down>,<Btn1Up>: unpress(nodraw) toggle() notify()"; |
88 #endif | 89 #endif |
89 | 90 |
90 | 91 |
91 | 92 |
92 #define offset(field) XtOffsetOf(CheckboxRec, field) | 93 #define offset(field) XtOffsetOf(CheckboxRec, checkbox.field) |
94 #define res(name,_class,intrepr,type,member,extrepr,value) \ | |
95 Xt_RESOURCE (name, _class, intrepr, type, offset(member), extrepr, value) | |
93 static XtResource resources[] = { | 96 static XtResource resources[] = { |
94 {XtNtristate, XtCTristate, XtRBoolean, sizeof(Boolean), | 97 res (XtNtristate, XtCTristate, XtRBoolean, Boolean, tristate, |
95 offset(checkbox.tristate), XtRImmediate, (XtPointer)FALSE}, | 98 XtRImmediate, FALSE), |
96 } ; | 99 } ; |
97 #undef offset | 100 #undef offset |
98 | 101 |
99 /* Member functions */ | 102 /* Member functions */ |
100 | 103 |
125 #define SuperClass ((RadioWidgetClass)&radioClassRec) | 128 #define SuperClass ((RadioWidgetClass)&radioClassRec) |
126 | 129 |
127 CheckboxClassRec checkboxClassRec = { | 130 CheckboxClassRec checkboxClassRec = { |
128 { | 131 { |
129 (WidgetClass) SuperClass, /* superclass */ | 132 (WidgetClass) SuperClass, /* superclass */ |
130 "Checkbox", /* class_name */ | 133 (String) "Checkbox", /* class_name */ |
131 sizeof(CheckboxRec), /* size */ | 134 sizeof(CheckboxRec), /* size */ |
132 CheckboxClassInit, /* class_initialize */ | 135 CheckboxClassInit, /* class_initialize */ |
133 NULL, /* class_part_initialize */ | 136 NULL, /* class_part_initialize */ |
134 FALSE, /* class_inited */ | 137 FALSE, /* class_inited */ |
135 CheckboxInit, /* initialize */ | 138 CheckboxInit, /* initialize */ |