Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 6507043: gtk: Do not show up a tooltip when hovering on the magnifying glass on NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 1b8859d67c2c7b14d0f9ed1d404fecdb29a690de..465ed671e25b76ebb1ebb23c80258bd546eed6d9 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -945,6 +945,15 @@ void LocationBarViewGtk::UpdateSiteTypeArea() {
gtk_widget_hide(GTK_WIDGET(security_info_label_));
}
+ if (location_entry()->IsEditingOrEmpty()) {
+ // Do not show the tooltip if the user has been editing the location
+ // bar, or the location bar is at the NTP.
+ gtk_widget_set_tooltip_text(location_icon_image_, "");
+ } else {
+ gtk_widget_set_tooltip_text(location_icon_image_,
+ l10n_util::GetStringUTF8(IDS_TOOLTIP_LOCATION_ICON).c_str());
+ }
+
gtk_widget_show(site_type_area());
SetSiteTypeDragSource();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698