Mercurial > emacs
comparison src/xmenu.c @ 8414:8a8d2cdd4218
(xmenu_show): Ignore any geometry resource from the user.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 01 Aug 1994 21:29:46 +0000 |
parents | 7fa23d45ccfd |
children | 1ef305a42786 |
comparison
equal
deleted
inserted
replaced
8413:aa772e9e5f86 | 8414:8a8d2cdd4218 |
---|---|
62 #ifdef USE_X_TOOLKIT | 62 #ifdef USE_X_TOOLKIT |
63 #include <X11/Xlib.h> | 63 #include <X11/Xlib.h> |
64 #include <X11/IntrinsicP.h> | 64 #include <X11/IntrinsicP.h> |
65 #include <X11/CoreP.h> | 65 #include <X11/CoreP.h> |
66 #include <X11/StringDefs.h> | 66 #include <X11/StringDefs.h> |
67 #include <X11/Shell.h> | |
67 #include <X11/Xaw/Paned.h> | 68 #include <X11/Xaw/Paned.h> |
68 #include "../lwlib/lwlib.h" | 69 #include "../lwlib/lwlib.h" |
69 #include "../lwlib/xlwmenuP.h" | 70 #include "../lwlib/xlwmenuP.h" |
70 #endif /* USE_X_TOOLKIT */ | 71 #endif /* USE_X_TOOLKIT */ |
71 | 72 |
1389 { | 1390 { |
1390 int i; | 1391 int i; |
1391 int menu_id; | 1392 int menu_id; |
1392 Widget menu; | 1393 Widget menu; |
1393 XlwMenuWidget menubar = (XlwMenuWidget) f->display.x->menubar_widget; | 1394 XlwMenuWidget menubar = (XlwMenuWidget) f->display.x->menubar_widget; |
1395 Arg av [2]; | |
1396 int ac = 0; | |
1394 | 1397 |
1395 /* This is the menu bar item (if any) that led to this menu. */ | 1398 /* This is the menu bar item (if any) that led to this menu. */ |
1396 widget_value *menubar_item = 0; | 1399 widget_value *menubar_item = 0; |
1397 | 1400 |
1398 widget_value *wv, *save_wv = 0, *first_wv = 0, *prev_wv = 0; | 1401 widget_value *wv, *save_wv = 0, *first_wv = 0, *prev_wv = 0; |
1572 /* Actually create the menu. */ | 1575 /* Actually create the menu. */ |
1573 menu_id = ++popup_id_tick; | 1576 menu_id = ++popup_id_tick; |
1574 menu = lw_create_widget ("popup", first_wv->name, menu_id, first_wv, | 1577 menu = lw_create_widget ("popup", first_wv->name, menu_id, first_wv, |
1575 f->display.x->widget, 1, 0, | 1578 f->display.x->widget, 1, 0, |
1576 popup_selection_callback, popup_down_callback); | 1579 popup_selection_callback, popup_down_callback); |
1580 | |
1581 /* Don't allow any geometry request from the user. */ | |
1582 XtSetArg (av[ac], XtNgeometry, 0); ac++; | |
1583 XtSetValues (menu, av, ac); | |
1584 | |
1577 /* Free the widget_value objects we used to specify the contents. */ | 1585 /* Free the widget_value objects we used to specify the contents. */ |
1578 free_menubar_widget_value_tree (first_wv); | 1586 free_menubar_widget_value_tree (first_wv); |
1579 | 1587 |
1580 /* No selection has been chosen yet. */ | 1588 /* No selection has been chosen yet. */ |
1581 menu_item_selection = 0; | 1589 menu_item_selection = 0; |