X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=lwlib%2Fxlwmenu.c;h=4b01283e745633bc3711431ccf4bed70ce94d20b;hp=313e46f728a60b176472615b21483f9b4fd6b190;hb=113b194be934327de99a168d809271db252c07c4;hpb=d3dd71489ab2730d79536ebdc3c56cca82766e9d diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index 313e46f..4b01283 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -423,10 +423,9 @@ string_width_u (XlwMenuWidget mw, int i, j; #ifdef NEED_MOTIF + chars = ""; if (!XmStringGetLtoR (string, XmFONTLIST_DEFAULT_TAG, &chars)) - { - chars = ""; - } + chars = ""; #else chars = string; #endif @@ -872,7 +871,9 @@ string_draw_u (XlwMenuWidget mw, char *chars; #ifdef NEED_MOTIF - XmStringGetLtoR (string, XmFONTLIST_DEFAULT_TAG, &chars); + chars = ""; + if (!XmStringGetLtoR (string, XmFONTLIST_DEFAULT_TAG, &chars)) + chars = ""; #else chars = string; #endif @@ -2824,8 +2825,8 @@ make_shadow_gcs (XlwMenuWidget mw) xgcv.foreground = mw->menu.bottom_shadow_color; /* xgcv.stipple = mw->menu.bottom_shadow_pixmap; gtb */ #ifdef NEED_MOTIF - if (mw->menu.top_shadow_pixmap && - mw->menu.top_shadow_pixmap != XmUNSPECIFIED_PIXMAP) + if (mw->menu.bottom_shadow_pixmap && + mw->menu.bottom_shadow_pixmap != XmUNSPECIFIED_PIXMAP) xgcv.stipple = mw->menu.bottom_shadow_pixmap; else xgcv.stipple = 0;