| Index: chrome/browser/ui/gtk/constrained_window_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/constrained_window_gtk.cc b/chrome/browser/ui/gtk/constrained_window_gtk.cc
|
| index c6e43f000dd98247df32eb40daaa75c11e9fe938..35abc6425489a2a856e10be1402fa52f77f1a7cc 100644
|
| --- a/chrome/browser/ui/gtk/constrained_window_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/constrained_window_gtk.cc
|
| @@ -57,13 +57,6 @@ ConstrainedWindowGtk::ConstrainedWindowGtk(
|
| ui::kContentAreaBorder, ui::kContentAreaBorder);
|
| }
|
|
|
| - GdkColor background;
|
| - if (delegate->GetBackgroundColor(&background)) {
|
| - gtk_widget_modify_base(ebox, GTK_STATE_NORMAL, &background);
|
| - gtk_widget_modify_fg(ebox, GTK_STATE_NORMAL, &background);
|
| - gtk_widget_modify_bg(ebox, GTK_STATE_NORMAL, &background);
|
| - }
|
| -
|
| if (gtk_widget_get_parent(dialog))
|
| gtk_widget_reparent(dialog, alignment);
|
| else
|
| @@ -73,6 +66,8 @@ ConstrainedWindowGtk::ConstrainedWindowGtk(
|
| gtk_container_add(GTK_CONTAINER(ebox), frame);
|
| border_.Own(ebox);
|
|
|
| + BackgroundColorChanged();
|
| +
|
| gtk_widget_add_events(widget(), GDK_KEY_PRESS_MASK);
|
| g_signal_connect(widget(), "key-press-event", G_CALLBACK(OnKeyPressThunk),
|
| this);
|
| @@ -127,6 +122,15 @@ void ConstrainedWindowGtk::FocusConstrainedWindow() {
|
| }
|
| }
|
|
|
| +void ConstrainedWindowGtk::BackgroundColorChanged() {
|
| + GdkColor background;
|
| + if (delegate_->GetBackgroundColor(&background)) {
|
| + gtk_widget_modify_base(border_.get(), GTK_STATE_NORMAL, &background);
|
| + gtk_widget_modify_fg(border_.get(), GTK_STATE_NORMAL, &background);
|
| + gtk_widget_modify_bg(border_.get(), GTK_STATE_NORMAL, &background);
|
| + }
|
| +}
|
| +
|
| ConstrainedWindowGtk::TabContentsViewType*
|
| ConstrainedWindowGtk::ContainingView() {
|
| return ChromeWebContentsViewDelegateGtk::GetFor(web_contents_);
|
|
|