# HG changeset patch # User Jan D # Date 1271437601 -7200 # Node ID 65450964c877bea5d17b56cb2b46d3c14bfdea3d # Parent 8bb4965be790684341ff9abcef0e7f35953cf05b# Parent faaa7a6517a882555e2baa0df8213f1f3a3c0171 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used. diff -r 8bb4965be790 -r 65450964c877 src/ChangeLog --- a/src/ChangeLog Fri Apr 16 00:41:19 2010 -0700 +++ b/src/ChangeLog Fri Apr 16 19:06:41 2010 +0200 @@ -1,3 +1,7 @@ +2010-04-16 Jan Djärv + + * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used. + 2010-04-16 Ken Brown (tiny change) * s/cygwin.h: Avoid linking against static libgcc. diff -r 8bb4965be790 -r 65450964c877 src/xmenu.c --- a/src/xmenu.c Fri Apr 16 00:41:19 2010 -0700 +++ b/src/xmenu.c Fri Apr 16 19:06:41 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. */