Commit 5ba5ec85 authored by Jan D's avatar Jan D

* xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.

parent a20a9df3
2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
* xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
* s/cygwin.h: Avoid linking against static libgcc.
......
......@@ -978,14 +978,9 @@ apply_systemfont_to_menu (w)
if (XtIsShell (w)) /* popup menu */
{
Widget *childs = NULL;
int num = 0;
XtVaGetValues (w, XtNnumChildren, &num, NULL);
if (num != 1) return; /* Should only be one. */
childs[0] = 0;
XtVaGetValues (w, XtNchildren, &childs, NULL);
if (childs && *childs) w = *childs;
if (*childs) w = *childs;
}
/* Only use system font if the default is used for the menu. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment