# HG changeset patch # User Jan Dj¸«£rv # Date 1093625402 0 # Node ID 3f2598db97ac000fb1ddd28055cfd33d0c48def0 # Parent 1b92d5cd6d1b4a0e5f3b52203d9fdccaa9935625 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when tool bar items is 0. diff -r 1b92d5cd6d1b -r 3f2598db97ac src/ChangeLog --- a/src/ChangeLog Fri Aug 27 04:40:17 2004 +0000 +++ b/src/ChangeLog Fri Aug 27 16:50:02 2004 +0000 @@ -1,3 +1,8 @@ +2004-08-27 Jan Dj,Ad(Brv + + * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when + tool bar items is 0. + 2004-08-26 YAMAMOTO Mitsuharu * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte diff -r 1b92d5cd6d1b -r 3f2598db97ac src/gtkutil.c --- a/src/gtkutil.c Fri Aug 27 04:40:17 2004 +0000 +++ b/src/gtkutil.c Fri Aug 27 16:50:02 2004 +0000 @@ -793,7 +793,7 @@ up in the wrong place as tool bar height has not been taken into account. So we cheat a bit by setting a height that is what it will have later on when tool bar items are added. */ - if (FRAME_EXTERNAL_TOOL_BAR (f) && FRAME_TOOLBAR_HEIGHT (f) == 0) + if (FRAME_EXTERNAL_TOOL_BAR (f) && f->n_tool_bar_items == 0) FRAME_TOOLBAR_HEIGHT (f) = 34;