diff options
| author | Karl Heuer | 1995-05-24 04:42:52 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-24 04:42:52 +0000 |
| commit | 1d1c15673ed5eb6175210ba5f9ba33d8b1efb2c7 (patch) | |
| tree | 698e908341a7efa49d36aa3ae5a68792f6d782c1 /src | |
| parent | 00983aba269065250fa386eba7f25b2472ffc1bc (diff) | |
| download | emacs-1d1c15673ed5eb6175210ba5f9ba33d8b1efb2c7.tar.gz emacs-1d1c15673ed5eb6175210ba5f9ba33d8b1efb2c7.zip | |
(set_frame_menubar): Set menubar_height field.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index aaa098d55ad..da760d4214b 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -67,6 +67,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 67 | #include <X11/CoreP.h> | 67 | #include <X11/CoreP.h> |
| 68 | #include <X11/StringDefs.h> | 68 | #include <X11/StringDefs.h> |
| 69 | #include <X11/Shell.h> | 69 | #include <X11/Shell.h> |
| 70 | #include <X11/Xaw/Paned.h> | ||
| 70 | #include "../lwlib/lwlib.h" | 71 | #include "../lwlib/lwlib.h" |
| 71 | #else /* not USE_X_TOOLKIT */ | 72 | #else /* not USE_X_TOOLKIT */ |
| 72 | #include "../oldXMenu/XMenu.h" | 73 | #include "../oldXMenu/XMenu.h" |
| @@ -1555,6 +1556,24 @@ set_frame_menubar (f, first_time) | |||
| 1555 | popup_deactivate_callback); | 1556 | popup_deactivate_callback); |
| 1556 | f->display.x->menubar_widget = menubar_widget; | 1557 | f->display.x->menubar_widget = menubar_widget; |
| 1557 | } | 1558 | } |
| 1559 | |||
| 1560 | { | ||
| 1561 | int menubar_size | ||
| 1562 | = (f->display.x->menubar_widget | ||
| 1563 | ? (f->display.x->menubar_widget->core.height | ||
| 1564 | + f->display.x->menubar_widget->core.border_width) | ||
| 1565 | : 0); | ||
| 1566 | |||
| 1567 | if (FRAME_EXTERNAL_MENU_BAR (f)) | ||
| 1568 | { | ||
| 1569 | Dimension ibw = 0; | ||
| 1570 | XtVaGetValues (f->display.x->column_widget, | ||
| 1571 | XtNinternalBorderWidth, &ibw, NULL); | ||
| 1572 | menubar_size += ibw; | ||
| 1573 | } | ||
| 1574 | |||
| 1575 | f->display.x->menubar_height = menubar_size; | ||
| 1576 | } | ||
| 1558 | 1577 | ||
| 1559 | free_menubar_widget_value_tree (first_wv); | 1578 | free_menubar_widget_value_tree (first_wv); |
| 1560 | 1579 | ||