diff options
| author | Richard M. Stallman | 1995-04-19 06:09:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-19 06:09:42 +0000 |
| commit | 673a6211ed1bdd2e7ffff2ce1eba1ac7bec6a64b (patch) | |
| tree | 2b0e4fa72925c6175f026397f316134f8bb472f9 | |
| parent | f250682621d101fb27f1d6a9ef3b76ce47195b26 (diff) | |
| download | emacs-673a6211ed1bdd2e7ffff2ce1eba1ac7bec6a64b.tar.gz emacs-673a6211ed1bdd2e7ffff2ce1eba1ac7bec6a64b.zip | |
(xmenu_show, xdialog_show): Delete menubarp arg.
(Fx_popup_menu): Don't compute menubarp.
| -rw-r--r-- | src/xmenu.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 224fc7fea66..799d47dff5a 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -755,7 +755,6 @@ cached information about equivalent key sequences.") | |||
| 755 | FRAME_PTR f; | 755 | FRAME_PTR f; |
| 756 | Lisp_Object x, y, window; | 756 | Lisp_Object x, y, window; |
| 757 | int keymaps = 0; | 757 | int keymaps = 0; |
| 758 | int menubarp = 0; | ||
| 759 | int for_click = 0; | 758 | int for_click = 0; |
| 760 | struct gcpro gcpro1; | 759 | struct gcpro gcpro1; |
| 761 | 760 | ||
| @@ -801,11 +800,6 @@ cached information about equivalent key sequences.") | |||
| 801 | tem = Fcar (Fcdr (Fcdr (tem))); /* POSN_WINDOW_POSN (tem) */ | 800 | tem = Fcar (Fcdr (Fcdr (tem))); /* POSN_WINDOW_POSN (tem) */ |
| 802 | x = Fcar (tem); | 801 | x = Fcar (tem); |
| 803 | y = Fcdr (tem); | 802 | y = Fcdr (tem); |
| 804 | |||
| 805 | /* Determine whether this menu is handling a menu bar click. */ | ||
| 806 | tem = Fcar (Fcdr (Fcar (Fcdr (position)))); | ||
| 807 | if (CONSP (tem) && EQ (Fcar (tem), Qmenu_bar)) | ||
| 808 | menubarp = 1; | ||
| 809 | } | 803 | } |
| 810 | } | 804 | } |
| 811 | 805 | ||
| @@ -918,7 +912,7 @@ cached information about equivalent key sequences.") | |||
| 918 | /* Display them in a menu. */ | 912 | /* Display them in a menu. */ |
| 919 | BLOCK_INPUT; | 913 | BLOCK_INPUT; |
| 920 | 914 | ||
| 921 | selection = xmenu_show (f, xpos, ypos, menubarp, for_click, | 915 | selection = xmenu_show (f, xpos, ypos, for_click, |
| 922 | keymaps, title, &error_name); | 916 | keymaps, title, &error_name); |
| 923 | UNBLOCK_INPUT; | 917 | UNBLOCK_INPUT; |
| 924 | 918 | ||
| @@ -1617,7 +1611,6 @@ free_frame_menubar (f) | |||
| 1617 | /* F is the frame the menu is for. | 1611 | /* F is the frame the menu is for. |
| 1618 | X and Y are the frame-relative specified position, | 1612 | X and Y are the frame-relative specified position, |
| 1619 | relative to the inside upper left corner of the frame F. | 1613 | relative to the inside upper left corner of the frame F. |
| 1620 | MENUBARP is 1 if this menu came from the menu bar. | ||
| 1621 | FOR_CLICK if this menu was invoked for a mouse click. | 1614 | FOR_CLICK if this menu was invoked for a mouse click. |
| 1622 | KEYMAPS is 1 if this menu was specified with keymaps; | 1615 | KEYMAPS is 1 if this menu was specified with keymaps; |
| 1623 | in that case, we return a list containing the chosen item's value | 1616 | in that case, we return a list containing the chosen item's value |
| @@ -1649,11 +1642,10 @@ popup_selection_callback (widget, id, client_data) | |||
| 1649 | } | 1642 | } |
| 1650 | 1643 | ||
| 1651 | static Lisp_Object | 1644 | static Lisp_Object |
| 1652 | xmenu_show (f, x, y, menubarp, for_click, keymaps, title, error) | 1645 | xmenu_show (f, x, y, for_click, keymaps, title, error) |
| 1653 | FRAME_PTR f; | 1646 | FRAME_PTR f; |
| 1654 | int x; | 1647 | int x; |
| 1655 | int y; | 1648 | int y; |
| 1656 | int menubarp; /* This arg is unused in Xt version. */ | ||
| 1657 | int for_click; | 1649 | int for_click; |
| 1658 | int keymaps; | 1650 | int keymaps; |
| 1659 | Lisp_Object title; | 1651 | Lisp_Object title; |
| @@ -1917,9 +1909,8 @@ static char * button_names [] = { | |||
| 1917 | "button6", "button7", "button8", "button9", "button10" }; | 1909 | "button6", "button7", "button8", "button9", "button10" }; |
| 1918 | 1910 | ||
| 1919 | static Lisp_Object | 1911 | static Lisp_Object |
| 1920 | xdialog_show (f, menubarp, keymaps, title, error) | 1912 | xdialog_show (f, keymaps, title, error) |
| 1921 | FRAME_PTR f; | 1913 | FRAME_PTR f; |
| 1922 | int menubarp; | ||
| 1923 | int keymaps; | 1914 | int keymaps; |
| 1924 | Lisp_Object title; | 1915 | Lisp_Object title; |
| 1925 | char **error; | 1916 | char **error; |
| @@ -2095,10 +2086,9 @@ xdialog_show (f, menubarp, keymaps, title, error) | |||
| 2095 | #else /* not USE_X_TOOLKIT */ | 2086 | #else /* not USE_X_TOOLKIT */ |
| 2096 | 2087 | ||
| 2097 | static Lisp_Object | 2088 | static Lisp_Object |
| 2098 | xmenu_show (f, x, y, menubarp, for_click, keymaps, title, error) | 2089 | xmenu_show (f, x, y, for_click, keymaps, title, error) |
| 2099 | FRAME_PTR f; | 2090 | FRAME_PTR f; |
| 2100 | int x, y; | 2091 | int x, y; |
| 2101 | int menubarp; | ||
| 2102 | int for_click; | 2092 | int for_click; |
| 2103 | int keymaps; | 2093 | int keymaps; |
| 2104 | Lisp_Object title; | 2094 | Lisp_Object title; |