| 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_);
|
|
|