129 |
|
|
130 |
/* FIXME: Should ESC close one level of menu structure or the complete menu? */ |
/* FIXME: Should ESC close one level of menu structure or the complete menu? */ |
131 |
|
|
132 |
/* FIXME: Should F10 enter to menu? Which one? File? */ |
/* FIXME: F10 should enter the menu, the first one in the menu-bar. */ |
133 |
|
|
134 |
#define offset(field) XtOffset(XlwMenuWidget, field) |
#define offset(field) XtOffset(XlwMenuWidget, field) |
135 |
static XtResource |
static XtResource |
142 |
{XtNbuttonForeground, XtCButtonForeground, XtRPixel, sizeof(Pixel), |
{XtNbuttonForeground, XtCButtonForeground, XtRPixel, sizeof(Pixel), |
143 |
offset(menu.button_foreground), XtRString, "XtDefaultForeground"}, |
offset(menu.button_foreground), XtRString, "XtDefaultForeground"}, |
144 |
{XtNmargin, XtCMargin, XtRDimension, sizeof(Dimension), |
{XtNmargin, XtCMargin, XtRDimension, sizeof(Dimension), |
145 |
offset(menu.margin), XtRImmediate, (XtPointer) 4}, |
offset(menu.margin), XtRImmediate, (XtPointer)1}, |
146 |
{XtNhorizontalSpacing, XtCMargin, XtRDimension, sizeof(Dimension), |
{XtNhorizontalSpacing, XtCMargin, XtRDimension, sizeof(Dimension), |
147 |
offset(menu.horizontal_spacing), XtRImmediate, (XtPointer)3}, |
offset(menu.horizontal_spacing), XtRImmediate, (XtPointer)3}, |
148 |
{XtNverticalSpacing, XtCMargin, XtRDimension, sizeof(Dimension), |
{XtNverticalSpacing, XtCMargin, XtRDimension, sizeof(Dimension), |
149 |
offset(menu.vertical_spacing), XtRImmediate, (XtPointer)1}, |
offset(menu.vertical_spacing), XtRImmediate, (XtPointer)2}, |
150 |
{XtNarrowSpacing, XtCMargin, XtRDimension, sizeof(Dimension), |
{XtNarrowSpacing, XtCMargin, XtRDimension, sizeof(Dimension), |
151 |
offset(menu.arrow_spacing), XtRImmediate, (XtPointer)10}, |
offset(menu.arrow_spacing), XtRImmediate, (XtPointer)10}, |
152 |
|
|
153 |
{XmNshadowThickness, XmCShadowThickness, XtRDimension, |
{XmNshadowThickness, XmCShadowThickness, XtRDimension, |
154 |
sizeof (Dimension), offset (menu.shadow_thickness), |
sizeof (Dimension), offset (menu.shadow_thickness), |
155 |
XtRImmediate, (XtPointer) 2}, |
XtRImmediate, (XtPointer)1}, |
156 |
{XmNtopShadowColor, XmCTopShadowColor, XtRPixel, sizeof (Pixel), |
{XmNtopShadowColor, XmCTopShadowColor, XtRPixel, sizeof (Pixel), |
157 |
offset (menu.top_shadow_color), XtRImmediate, (XtPointer)-1}, |
offset (menu.top_shadow_color), XtRImmediate, (XtPointer)-1}, |
158 |
{XmNbottomShadowColor, XmCBottomShadowColor, XtRPixel, sizeof (Pixel), |
{XmNbottomShadowColor, XmCBottomShadowColor, XtRPixel, sizeof (Pixel), |