summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_bar_gtk.cc
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 19:08:38 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 19:08:38 +0000
commit0e92ac88041146b1fbc10f33754c87bfcc44db46 (patch)
treecbd43e16e336e9b08b50a604049e47dd5db5ceca /chrome/browser/gtk/bookmark_bar_gtk.cc
parentc36a96b0697d45d2a07a537b6ebc13ec377ef685 (diff)
downloadchromium_src-0e92ac88041146b1fbc10f33754c87bfcc44db46.zip
chromium_src-0e92ac88041146b1fbc10f33754c87bfcc44db46.tar.gz
chromium_src-0e92ac88041146b1fbc10f33754c87bfcc44db46.tar.bz2
GTK: Don't display bookmark right click menu when bookmark bar is hidden.
Because the event box is still visible when the bookmark bar is hidden and the event box is connected to the button-press-event, if you right click under the location bar or the browser action icons, you'll show the bookmark menu even if you have it hidden. BUG=none TEST=none Review URL: http://codereview.chromium.org/1704010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bar_gtk.cc')
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc
index 067bf78..7181ed6 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.cc
+++ b/chrome/browser/gtk/bookmark_bar_gtk.cc
@@ -960,7 +960,7 @@ void BookmarkBarGtk::PopupMenuForNode(GtkWidget* sender,
gboolean BookmarkBarGtk::OnButtonPressed(GtkWidget* sender,
GdkEventButton* event) {
- if (event->button == 3) {
+ if (event->button == 3 && GTK_WIDGET_VISIBLE(bookmark_hbox_)) {
const BookmarkNode* node = GetNodeForToolButton(sender);
DCHECK(node);
DCHECK(page_navigator_);