diff options
| author | Xue Fuqiao | 2013-08-04 10:59:08 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-08-04 10:59:08 +0800 |
| commit | 99191b89ff64172740add88e67f163619a07830c (patch) | |
| tree | 828d1ac7c917076703b9d4a3746ff7480bd97f0d /src/menu.c | |
| parent | ab419665caa6e2ad7465cf59ef902cc4ad1d2117 (diff) | |
| parent | 2ad0a067728ccc7f8b32b0c3db1677ca351943fe (diff) | |
| download | emacs-99191b89ff64172740add88e67f163619a07830c.tar.gz emacs-99191b89ff64172740add88e67f163619a07830c.zip | |
Merge from mainline.
Diffstat (limited to 'src/menu.c')
| -rw-r--r-- | src/menu.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/menu.c b/src/menu.c index 6b4a22d3052..6fce5b91caf 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -867,7 +867,8 @@ update_submenu_strings (widget_value *first_wv) | |||
| 867 | VECTOR is an array of menu events for the whole menu. */ | 867 | VECTOR is an array of menu events for the whole menu. */ |
| 868 | 868 | ||
| 869 | void | 869 | void |
| 870 | find_and_call_menu_selection (FRAME_PTR f, int menu_bar_items_used, Lisp_Object vector, void *client_data) | 870 | find_and_call_menu_selection (struct frame *f, int menu_bar_items_used, |
| 871 | Lisp_Object vector, void *client_data) | ||
| 871 | { | 872 | { |
| 872 | Lisp_Object prefix, entry; | 873 | Lisp_Object prefix, entry; |
| 873 | Lisp_Object *subprefix_stack; | 874 | Lisp_Object *subprefix_stack; |
| @@ -950,7 +951,7 @@ find_and_call_menu_selection (FRAME_PTR f, int menu_bar_items_used, Lisp_Object | |||
| 950 | /* As above, but return the menu selection instead of storing in kb buffer. | 951 | /* As above, but return the menu selection instead of storing in kb buffer. |
| 951 | If KEYMAPS, return full prefixes to selection. */ | 952 | If KEYMAPS, return full prefixes to selection. */ |
| 952 | Lisp_Object | 953 | Lisp_Object |
| 953 | find_and_return_menu_selection (FRAME_PTR f, bool keymaps, void *client_data) | 954 | find_and_return_menu_selection (struct frame *f, bool keymaps, void *client_data) |
| 954 | { | 955 | { |
| 955 | Lisp_Object prefix, entry; | 956 | Lisp_Object prefix, entry; |
| 956 | int i; | 957 | int i; |
| @@ -1060,7 +1061,7 @@ no quit occurs and `x-popup-menu' returns nil. */) | |||
| 1060 | Lisp_Object title; | 1061 | Lisp_Object title; |
| 1061 | const char *error_name = NULL; | 1062 | const char *error_name = NULL; |
| 1062 | Lisp_Object selection = Qnil; | 1063 | Lisp_Object selection = Qnil; |
| 1063 | FRAME_PTR f = NULL; | 1064 | struct frame *f = NULL; |
| 1064 | Lisp_Object x, y, window; | 1065 | Lisp_Object x, y, window; |
| 1065 | bool keymaps = 0; | 1066 | bool keymaps = 0; |
| 1066 | bool for_click = 0; | 1067 | bool for_click = 0; |
| @@ -1116,7 +1117,7 @@ no quit occurs and `x-popup-menu' returns nil. */) | |||
| 1116 | if (get_current_pos_p) | 1117 | if (get_current_pos_p) |
| 1117 | { | 1118 | { |
| 1118 | /* Use the mouse's current position. */ | 1119 | /* Use the mouse's current position. */ |
| 1119 | FRAME_PTR new_f = SELECTED_FRAME (); | 1120 | struct frame *new_f = SELECTED_FRAME (); |
| 1120 | #ifdef HAVE_X_WINDOWS | 1121 | #ifdef HAVE_X_WINDOWS |
| 1121 | /* Can't use mouse_position_hook for X since it returns | 1122 | /* Can't use mouse_position_hook for X since it returns |
| 1122 | coordinates relative to the window the mouse is in, | 1123 | coordinates relative to the window the mouse is in, |