Mercurial > hg > xemacs-beta
diff lwlib/xlwcheckbox.c @ 4521:383ab474a241
Fix docstring typo.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Tue, 28 Oct 2008 10:38:26 +0900 |
parents | 4c038e89d563 |
children | fc7067b7f407 |
line wrap: on
line diff
--- a/lwlib/xlwcheckbox.c Mon Oct 27 09:51:51 2008 +0900 +++ b/lwlib/xlwcheckbox.c Tue Oct 28 10:38:26 2008 +0900 @@ -40,6 +40,7 @@ #include <X11/StringDefs.h> #include ATHENA_XawInit_h_ #include "../src/xmu.h" +#include "xt-wrappers.h" #include "xlwcheckboxP.h" @@ -89,10 +90,12 @@ -#define offset(field) XtOffsetOf(CheckboxRec, field) +#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) static XtResource resources[] = { - {XtNtristate, XtCTristate, XtRBoolean, sizeof(Boolean), - offset(checkbox.tristate), XtRImmediate, (XtPointer)FALSE}, + res (XtNtristate, XtCTristate, XtRBoolean, Boolean, tristate, + XtRImmediate, FALSE), } ; #undef offset @@ -127,7 +130,7 @@ CheckboxClassRec checkboxClassRec = { { (WidgetClass) SuperClass, /* superclass */ - "Checkbox", /* class_name */ + (String) "Checkbox", /* class_name */ sizeof(CheckboxRec), /* size */ CheckboxClassInit, /* class_initialize */ NULL, /* class_part_initialize */