Mercurial > emacs
comparison src/gtkutil.c @ 56804:3f2598db97ac
* gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
tool bar items is 0.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Fri, 27 Aug 2004 16:50:02 +0000 |
parents | 4f8b4f60e748 |
children | da44dbb5ee89 3219f94257bc |
comparison
equal
deleted
inserted
replaced
56803:1b92d5cd6d1b | 56804:3f2598db97ac |
---|---|
791 the frame is already mapped, so there is a "jumping" resize. | 791 the frame is already mapped, so there is a "jumping" resize. |
792 This makes geometry handling difficult, for example -0-0 will end | 792 This makes geometry handling difficult, for example -0-0 will end |
793 up in the wrong place as tool bar height has not been taken into account. | 793 up in the wrong place as tool bar height has not been taken into account. |
794 So we cheat a bit by setting a height that is what it will have | 794 So we cheat a bit by setting a height that is what it will have |
795 later on when tool bar items are added. */ | 795 later on when tool bar items are added. */ |
796 if (FRAME_EXTERNAL_TOOL_BAR (f) && FRAME_TOOLBAR_HEIGHT (f) == 0) | 796 if (FRAME_EXTERNAL_TOOL_BAR (f) && f->n_tool_bar_items == 0) |
797 FRAME_TOOLBAR_HEIGHT (f) = 34; | 797 FRAME_TOOLBAR_HEIGHT (f) = 34; |
798 | 798 |
799 | 799 |
800 /* We don't want this widget double buffered, because we draw on it | 800 /* We don't want this widget double buffered, because we draw on it |
801 with regular X drawing primitives, so from a GTK/GDK point of | 801 with regular X drawing primitives, so from a GTK/GDK point of |