-2009-11-07 Chong Yidong <cyd@stupidchicken.com>
+2009-11-08 Chong Yidong <cyd@stupidchicken.com>
* xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
- xmenu_show.
+ xmenu_show. Hide any tooltip before opening a menu.
(xmenu_show): New arg. Pass it to create_and_show_popup_menu.
(create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
}
#ifdef HAVE_MENUS
+ /* Hide a previous tip, if any. */
+ Fx_hide_tip ();
+
/* Display them in a menu. */
BLOCK_INPUT;
/* Display the menu. */
gtk_widget_show_all (menu);
+
gtk_menu_popup (GTK_MENU (menu), 0, 0, pos_func, &popup_x_y, i,
timestamp > 0 ? timestamp : gtk_get_current_event_time());