diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 23:19:02 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 23:19:02 +0000 |
commit | 2c0a3347e89dab58e3528c3a2bca61db4ef32d6c (patch) | |
tree | ee24fe7cbc671a71c15ba9591b954a42eaa10b96 /chrome/browser/gtk/menu_gtk.cc | |
parent | a1bb3d1d459517caa85a0c534994d5efe8b4b3b0 (diff) | |
download | chromium_src-2c0a3347e89dab58e3528c3a2bca61db4ef32d6c.zip chromium_src-2c0a3347e89dab58e3528c3a2bca61db4ef32d6c.tar.gz chromium_src-2c0a3347e89dab58e3528c3a2bca61db4ef32d6c.tar.bz2 |
Gtk: pass the correct event time when we show right click context menus in the render view.
Review URL: http://codereview.chromium.org/62024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/menu_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/menu_gtk.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/gtk/menu_gtk.cc b/chrome/browser/gtk/menu_gtk.cc index dac60ab..2a804cb 100644 --- a/chrome/browser/gtk/menu_gtk.cc +++ b/chrome/browser/gtk/menu_gtk.cc @@ -69,13 +69,12 @@ void MenuGtk::Popup(GtkWidget* widget, gint button_type, guint32 timestamp) { button_type, timestamp); } -void MenuGtk::PopupAsContext() { +void MenuGtk::PopupAsContext(guint32 event_time) { gtk_container_foreach(GTK_CONTAINER(menu_.get()), SetMenuItemInfo, this); - // TODO(estade): |button| value of 0 (6th argument) is not strictly true, + // TODO(estade): |button| value of 3 (6th argument) is not strictly true, // but does it matter? - gtk_menu_popup(GTK_MENU(menu_.get()), NULL, NULL, NULL, NULL, 0, - gtk_get_current_event_time()); + gtk_menu_popup(GTK_MENU(menu_.get()), NULL, NULL, NULL, NULL, 3, event_time); } void MenuGtk::BuildMenuIn(GtkWidget* menu, |