# HG changeset patch # User Jan D # Date 1271437531 -7200 # Node ID faaa7a6517a882555e2baa0df8213f1f3a3c0171 # Parent c08a2125a665e49c68a0db915ff81c1f4d7ecec8 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used. diff -r c08a2125a665 -r faaa7a6517a8 src/xmenu.c --- a/src/xmenu.c Fri Apr 16 19:05:20 2010 +0200 +++ b/src/xmenu.c Fri Apr 16 19:05:31 2010 +0200 @@ -978,14 +978,9 @@ 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. */