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

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

Issue 7310016: GTK: Now that we depend on gtk 2.18+, replace this pattern: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/profile_menu_button.cc
diff --git a/chrome/browser/ui/gtk/profile_menu_button.cc b/chrome/browser/ui/gtk/profile_menu_button.cc
index 9b7db3f5d9b65959fd53cead16459364ef0b4d90..b8ed09eff26d007b61cf8cc14fe37d69f0be0444 100644
--- a/chrome/browser/ui/gtk/profile_menu_button.cc
+++ b/chrome/browser/ui/gtk/profile_menu_button.cc
@@ -35,10 +35,7 @@ void ProfileMenuButton::UpdateText(Profile* profile) {
gtk_button_set_label(
GTK_BUTTON(widget_.get()), UTF16ToUTF8(elided_text).c_str());
- if (!text.empty())
- gtk_widget_show(widget_.get());
- else
- gtk_widget_hide(widget_.get());
+ gtk_widget_set_visible(widget_.get(), !text.empty());
}
gboolean ProfileMenuButton::OnButtonPressed(GtkWidget* widget,
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698