diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 18:19:13 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 18:19:13 +0000 |
commit | 374c5495268eb82a7328d504c1fe24969c56e9b6 (patch) | |
tree | f8969caf81de3ecc5b93e9bfc8970530f16937d0 | |
parent | d4832d6632e6b509c87f65affcd23cd9c013eabf (diff) | |
download | chromium_src-374c5495268eb82a7328d504c1fe24969c56e9b6.zip chromium_src-374c5495268eb82a7328d504c1fe24969c56e9b6.tar.gz chromium_src-374c5495268eb82a7328d504c1fe24969c56e9b6.tar.bz2 |
GTK: Don't display empty tooltips on folders in the bookmark bar.
Review URL: http://codereview.chromium.org/115576
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16496 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/gtk/bookmark_bar_gtk.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc index 553459e..64069cb 100644 --- a/chrome/browser/gtk/bookmark_bar_gtk.cc +++ b/chrome/browser/gtk/bookmark_bar_gtk.cc @@ -314,7 +314,9 @@ bool BookmarkBarGtk::IsAlwaysShown() { void BookmarkBarGtk::ConfigureButtonForNode(BookmarkNode* node, GtkWidget* button) { - gtk_widget_set_tooltip_text(button, BuildTooltip(node).c_str()); + std::string tooltip = BuildTooltip(node); + if (!tooltip.empty()) + gtk_widget_set_tooltip_text(button, tooltip.c_str()); // TODO(erg): Consider a soft maximum instead of this hard 15. std::wstring title = node->GetTitle(); |