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

Unified Diff: chrome/browser/gtk/browser_titlebar.cc

Issue 5217002: [gtk] don't show custom frame min/max/close when theme is changed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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/gtk/browser_titlebar.cc
diff --git a/chrome/browser/gtk/browser_titlebar.cc b/chrome/browser/gtk/browser_titlebar.cc
index 995f04776565552ea892376722a46eaa4dc2c82e..71c8571988fe344df95ae9cf13f552c122f18433 100644
--- a/chrome/browser/gtk/browser_titlebar.cc
+++ b/chrome/browser/gtk/browser_titlebar.cc
@@ -468,8 +468,10 @@ void BrowserTitlebar::BuildButtons(const std::string& button_string) {
}
// Now show the correct widgets in the two hierarchies.
- gtk_widget_show_all(titlebar_left_buttons_vbox_);
- gtk_widget_show_all(titlebar_right_buttons_vbox_);
+ if (using_custom_frame_) {
+ gtk_widget_show_all(titlebar_left_buttons_vbox_);
+ gtk_widget_show_all(titlebar_right_buttons_vbox_);
+ }
UpdateMaximizeRestoreVisibility();
}
@@ -522,9 +524,9 @@ void BrowserTitlebar::UpdateCustomFrame(bool use_custom_frame) {
using_custom_frame_ = use_custom_frame;
if (use_custom_frame) {
if (titlebar_left_buttons_vbox_)
- gtk_widget_show(titlebar_left_buttons_vbox_);
+ gtk_widget_show_all(titlebar_left_buttons_vbox_);
if (titlebar_right_buttons_vbox_)
- gtk_widget_show(titlebar_right_buttons_vbox_);
+ gtk_widget_show_all(titlebar_right_buttons_vbox_);
} else {
if (titlebar_left_buttons_vbox_)
gtk_widget_hide(titlebar_left_buttons_vbox_);
« 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