summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f3e59d5)
(XlwMenuInitialize): Use xlwmenu_default_font to default
the font if necessary. Make mw, itself, an argument.
static int pointer_grabbed;
static XEvent menu_post_event;
static int pointer_grabbed;
static XEvent menu_post_event;
+XFontStruct *xlwmenu_default_font;
+
static char
xlwMenuTranslations [] =
"<BtnDown>: start()\n\
static char
xlwMenuTranslations [] =
"<BtnDown>: start()\n\
-XlwMenuInitialize (request, new, args, num_args)
+XlwMenuInitialize (request, mw, args, num_args)
ArgList args;
Cardinal *num_args;
{
/* Get the GCs and the widget size */
ArgList args;
Cardinal *num_args;
{
/* Get the GCs and the widget size */
- XlwMenuWidget mw = (XlwMenuWidget)new;
-
XSetWindowAttributes xswa;
int mask;
XSetWindowAttributes xswa;
int mask;
gray_bits, gray_width,
gray_height, 1, 0, 1);
gray_bits, gray_width,
gray_height, 1, 0, 1);
+ /* I don't understand why this ends up 0 sometimes,
+ but it does. This kludge works around it.
+ Can anyone find a real fix? -- rms. */
+ if (mw->menu.font == 0)
+ mw->menu.font = xlwmenu_default_font;
+
make_drawing_gcs (mw);
make_shadow_gcs (mw);
make_drawing_gcs (mw);
make_shadow_gcs (mw);