diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 17:24:54 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 17:24:54 +0000 |
commit | a24004be92d4441d10a5a55b0cb2b3e0341f1024 (patch) | |
tree | be9df9c3784fc968e836308afb2986e0e3e6f72d /chrome | |
parent | 680e0843528c369d9d4fef358998bdb9d179e486 (diff) | |
download | chromium_src-a24004be92d4441d10a5a55b0cb2b3e0341f1024.zip chromium_src-a24004be92d4441d10a5a55b0cb2b3e0341f1024.tar.gz chromium_src-a24004be92d4441d10a5a55b0cb2b3e0341f1024.tar.bz2 |
GTK: Don't have a blank line in bookmark folder tooltips.
Review URL: http://codereview.chromium.org/198006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/gtk/bookmark_utils_gtk.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_utils_gtk.cc b/chrome/browser/gtk/bookmark_utils_gtk.cc index 12f27eb..8fbe9f9 100644 --- a/chrome/browser/gtk/bookmark_utils_gtk.cc +++ b/chrome/browser/gtk/bookmark_utils_gtk.cc @@ -212,7 +212,10 @@ std::string BuildTooltipFor(const BookmarkNode* node) { std::string escaped_title(escaped_title_cstr); g_free(escaped_title_cstr); - return std::string("<b>") + escaped_title + "</b>\n" + escaped_url; + if (!escaped_url.empty()) + return std::string("<b>") + escaped_title + "</b>\n" + escaped_url; + else + return std::string("<b>") + escaped_title + "</b>"; } } |