summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 20:24:46 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 20:24:46 +0000
commitbd6ad2285b483d99aa91e4f60b60894dbb15a358 (patch)
tree766a19e4eb9a8d08c163bf07c37649ef91366a6b
parentd8b1a271a69dcbf5b58023d7c228e9dbaa25d325 (diff)
downloadchromium_src-bd6ad2285b483d99aa91e4f60b60894dbb15a358.zip
chromium_src-bd6ad2285b483d99aa91e4f60b60894dbb15a358.tar.gz
chromium_src-bd6ad2285b483d99aa91e4f60b60894dbb15a358.tar.bz2
Linux: show tab context menu on mousedown rather than mouse up.
TEST=right click on a tab and see a context menu popup (i.e. no regression). Also, right click, hold, drag, release to select an item. Review URL: http://codereview.chromium.org/118023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17218 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/gtk/tabs/tab_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/tabs/tab_gtk.cc b/chrome/browser/gtk/tabs/tab_gtk.cc
index 96663f7..55062dc 100644
--- a/chrome/browser/gtk/tabs/tab_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_gtk.cc
@@ -167,6 +167,8 @@ gboolean TabGtk::OnMousePress(GtkWidget* widget, GdkEventButton* event,
if (just_selected) {
tab->delegate_->SelectTab(tab);
}
+ } else if (event->button == 3) {
+ tab->ShowContextMenu();
}
return TRUE;
@@ -177,8 +179,6 @@ gboolean TabGtk::OnMouseRelease(GtkWidget* widget, GdkEventButton* event,
TabGtk* tab) {
if (event->button == 2) {
tab->delegate_->CloseTab(tab);
- } else if (event->button == 3) {
- tab->ShowContextMenu();
}
return TRUE;