diff options
| author | Dmitry Antipov | 2013-10-10 14:06:17 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-10-10 14:06:17 +0400 |
| commit | 6bbe6da82dd61d050a773602f272dc4750291302 (patch) | |
| tree | 533463c1ba5b80dbf2acac602f8c7a13fe18d666 /src/xmenu.c | |
| parent | 6c8413fce16569e3883b48e64cd5da2a37a209d6 (diff) | |
| download | emacs-6bbe6da82dd61d050a773602f272dc4750291302.tar.gz emacs-6bbe6da82dd61d050a773602f272dc4750291302.zip | |
* keyboard.c (last_event_timestamp): Remove. For X selection and
GTK popup menus, it may be obtained from per-frame X display info.
(kbd_buffer_store_event_hold, kbd_buffer_get_event)
(process_special_events): Adjust users.
* keyboard.h (last_event_timestamp): Remove declaration.
* xmenu.c (xmenu_show, create_and_show_popup_menu): Lost last arg.
Use FRAME_DISPLAY_INFO (f)->last_user_time for gtk_menu_popup.
* menu.h (xmenu_show): Adjust prototype.
* menu.c (Fx_popup_menu): Adjust user.
* xselect.c (x_own_selection, x_get_foreign_selection)
(Fx_disown_selection_internal): Use dpyinfo->last_user_time.
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index fe0e229ef20..d910100f77f 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1262,8 +1262,8 @@ pop_down_menu (void *arg) | |||
| 1262 | menu pops down. | 1262 | menu pops down. |
| 1263 | menu_item_selection will be set to the selection. */ | 1263 | menu_item_selection will be set to the selection. */ |
| 1264 | static void | 1264 | static void |
| 1265 | create_and_show_popup_menu (struct frame *f, widget_value *first_wv, int x, int y, | 1265 | create_and_show_popup_menu (struct frame *f, widget_value *first_wv, |
| 1266 | bool for_click, Time timestamp) | 1266 | int x, int y, bool for_click) |
| 1267 | { | 1267 | { |
| 1268 | int i; | 1268 | int i; |
| 1269 | GtkWidget *menu; | 1269 | GtkWidget *menu; |
| @@ -1314,7 +1314,7 @@ create_and_show_popup_menu (struct frame *f, widget_value *first_wv, int x, int | |||
| 1314 | gtk_widget_show_all (menu); | 1314 | gtk_widget_show_all (menu); |
| 1315 | 1315 | ||
| 1316 | gtk_menu_popup (GTK_MENU (menu), 0, 0, pos_func, &popup_x_y, i, | 1316 | gtk_menu_popup (GTK_MENU (menu), 0, 0, pos_func, &popup_x_y, i, |
| 1317 | timestamp ? timestamp : gtk_get_current_event_time ()); | 1317 | FRAME_DISPLAY_INFO (f)->last_user_time); |
| 1318 | 1318 | ||
| 1319 | record_unwind_protect_ptr (pop_down_menu, menu); | 1319 | record_unwind_protect_ptr (pop_down_menu, menu); |
| 1320 | 1320 | ||
| @@ -1372,7 +1372,7 @@ pop_down_menu (Lisp_Object arg) | |||
| 1372 | menu_item_selection will be set to the selection. */ | 1372 | menu_item_selection will be set to the selection. */ |
| 1373 | static void | 1373 | static void |
| 1374 | create_and_show_popup_menu (struct frame *f, widget_value *first_wv, | 1374 | create_and_show_popup_menu (struct frame *f, widget_value *first_wv, |
| 1375 | int x, int y, bool for_click, Time timestamp) | 1375 | int x, int y, bool for_click) |
| 1376 | { | 1376 | { |
| 1377 | int i; | 1377 | int i; |
| 1378 | Arg av[2]; | 1378 | Arg av[2]; |
| @@ -1451,7 +1451,7 @@ cleanup_widget_value_tree (void *arg) | |||
| 1451 | 1451 | ||
| 1452 | Lisp_Object | 1452 | Lisp_Object |
| 1453 | xmenu_show (struct frame *f, int x, int y, bool for_click, bool keymaps, | 1453 | xmenu_show (struct frame *f, int x, int y, bool for_click, bool keymaps, |
| 1454 | Lisp_Object title, const char **error_name, Time timestamp) | 1454 | Lisp_Object title, const char **error_name) |
| 1455 | { | 1455 | { |
| 1456 | int i; | 1456 | int i; |
| 1457 | widget_value *wv, *save_wv = 0, *first_wv = 0, *prev_wv = 0; | 1457 | widget_value *wv, *save_wv = 0, *first_wv = 0, *prev_wv = 0; |
| @@ -1664,7 +1664,7 @@ xmenu_show (struct frame *f, int x, int y, bool for_click, bool keymaps, | |||
| 1664 | record_unwind_protect_ptr (cleanup_widget_value_tree, first_wv); | 1664 | record_unwind_protect_ptr (cleanup_widget_value_tree, first_wv); |
| 1665 | 1665 | ||
| 1666 | /* Actually create and show the menu until popped down. */ | 1666 | /* Actually create and show the menu until popped down. */ |
| 1667 | create_and_show_popup_menu (f, first_wv, x, y, for_click, timestamp); | 1667 | create_and_show_popup_menu (f, first_wv, x, y, for_click); |
| 1668 | 1668 | ||
| 1669 | unbind_to (specpdl_count, Qnil); | 1669 | unbind_to (specpdl_count, Qnil); |
| 1670 | 1670 | ||
| @@ -2133,7 +2133,7 @@ pop_down_menu (Lisp_Object arg) | |||
| 2133 | 2133 | ||
| 2134 | Lisp_Object | 2134 | Lisp_Object |
| 2135 | xmenu_show (struct frame *f, int x, int y, bool for_click, bool keymaps, | 2135 | xmenu_show (struct frame *f, int x, int y, bool for_click, bool keymaps, |
| 2136 | Lisp_Object title, const char **error_name, Time timestamp) | 2136 | Lisp_Object title, const char **error_name) |
| 2137 | { | 2137 | { |
| 2138 | Window root; | 2138 | Window root; |
| 2139 | XMenu *menu; | 2139 | XMenu *menu; |