Context menu does stick: Closes #6092 (again)

Discovered two more locations that weren't passing event time to
menu popup call.  In particular, this fixes the context menu for
attachments.
This commit is contained in:
Andreas Obergrusberger 2013-04-23 15:37:13 -07:00 committed by Jim Nelson
parent 0a46a9e930
commit 196f754d50

View file

@ -771,7 +771,7 @@ public class ConversationViewer : Gtk.Box {
private void show_attachment_menu(Geary.Email email, Geary.Attachment attachment) {
attachment_menu = build_attachment_menu(email, attachment);
attachment_menu.show_all();
attachment_menu.popup(null, null, null, 0, 0);
attachment_menu.popup(null, null, null, 0, Gtk.get_current_event_time());
}
private Gtk.Menu build_attachment_menu(Geary.Email email, Geary.Attachment attachment) {
@ -794,7 +794,7 @@ public class ConversationViewer : Gtk.Box {
private void show_message_menu(Geary.Email email) {
message_menu = build_message_menu(email);
message_menu.show_all();
message_menu.popup(null, null, null, 0, 0);
message_menu.popup(null, null, null, 0, Gtk.get_current_event_time());
}
private Gtk.Menu build_message_menu(Geary.Email email) {