]> code.delx.au - gnu-emacs/commitdiff
* gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Aug 2004 16:50:02 +0000 (16:50 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Aug 2004 16:50:02 +0000 (16:50 +0000)
  tool bar items is 0.

src/ChangeLog
src/gtkutil.c

index aa3721d91068055372cf87fdaea06e08edd06817..fd12877d2ce0e34544e4ecb08b7dd598f12354f9 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
+       tool bar items is 0.
+
 2004-08-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
        * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
index 3ffba0ba745e1a0b4c848f67da418d841d4843aa..fabdae74dc6fbd19022288d41d8a281262c3e544 100644 (file)
@@ -793,7 +793,7 @@ xg_create_frame_widgets (f)
      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;