Mercurial > hg > xemacs-beta
comparison lwlib/xlwcheckbox.c @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 9d177e8d4150 |
children | c33ae14dd6d0 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
23 /* | 23 /* |
24 * Checkbox.c - Checkbox button widget | 24 * Checkbox.c - Checkbox button widget |
25 * | 25 * |
26 * Author: Edward A. Falk | 26 * Author: Edward A. Falk |
27 * falk@falconer.vip.best.com | 27 * falk@falconer.vip.best.com |
28 * | 28 * |
29 * Date: June 30, 1997 | 29 * Date: June 30, 1997 |
30 * | 30 * |
31 * Overview: This widget is identical to the Radio widget in behavior, | 31 * Overview: This widget is identical to the Radio widget in behavior, |
32 * except that the button is square and has a check mark. | 32 * except that the button is square and has a check mark. |
33 */ | 33 */ |
36 #include <config.h> | 36 #include <config.h> |
37 #include <stdio.h> | 37 #include <stdio.h> |
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_INCLUDE(XawInit.h) | 41 #include ATHENA_XawInit_h_ |
42 #include "../src/xmu.h" | 42 #include "../src/xmu.h" |
43 #include "xlwcheckboxP.h" | 43 #include "xlwcheckboxP.h" |
44 | 44 |
45 | 45 |
46 /* 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, |
124 | 124 |
125 #define SuperClass ((RadioWidgetClass)&radioClassRec) | 125 #define SuperClass ((RadioWidgetClass)&radioClassRec) |
126 | 126 |
127 CheckboxClassRec checkboxClassRec = { | 127 CheckboxClassRec checkboxClassRec = { |
128 { | 128 { |
129 (WidgetClass) SuperClass, /* superclass */ | 129 (WidgetClass) SuperClass, /* superclass */ |
130 "Checkbox", /* class_name */ | 130 "Checkbox", /* class_name */ |
131 sizeof(CheckboxRec), /* size */ | 131 sizeof(CheckboxRec), /* size */ |
132 CheckboxClassInit, /* class_initialize */ | 132 CheckboxClassInit, /* class_initialize */ |
133 NULL, /* class_part_initialize */ | 133 NULL, /* class_part_initialize */ |
134 FALSE, /* class_inited */ | 134 FALSE, /* class_inited */ |
168 XtInheritQueryGeometry, /* query_geometry */ | 168 XtInheritQueryGeometry, /* query_geometry */ |
169 XtInheritDisplayAccelerator, /* display_accelerator */ | 169 XtInheritDisplayAccelerator, /* display_accelerator */ |
170 NULL /* extension */ | 170 NULL /* extension */ |
171 }, /* CoreClass fields initialization */ | 171 }, /* CoreClass fields initialization */ |
172 { | 172 { |
173 XtInheritChangeSensitive /* change_sensitive */ | 173 XtInheritChangeSensitive /* change_sensitive */ |
174 }, /* SimpleClass fields initialization */ | 174 }, /* SimpleClass fields initialization */ |
175 #ifdef _ThreeDP_h | 175 #ifdef _ThreeDP_h |
176 { | 176 { |
177 XtInheritXaw3dShadowDraw /* field not used */ | 177 XtInheritXaw3dShadowDraw /* field not used */ |
178 }, /* ThreeDClass fields initialization */ | 178 }, /* ThreeDClass fields initialization */ |
269 | 269 |
270 | 270 |
271 /* Function Name: CheckboxDestroy | 271 /* Function Name: CheckboxDestroy |
272 * Description: Destroy Callback for checkbox widget. | 272 * Description: Destroy Callback for checkbox widget. |
273 * Arguments: w - the checkbox widget that is being destroyed. | 273 * Arguments: w - the checkbox widget that is being destroyed. |
274 * junk, grabage - not used. | 274 * junk, garbage - not used. |
275 * Returns: none. | 275 * Returns: none. |
276 */ | 276 */ |
277 | 277 |
278 /* ARGSUSED */ | 278 /* ARGSUSED */ |
279 static void | 279 static void |