summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/gtk_theme_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/gtk_theme_provider.cc')
-rw-r--r--chrome/browser/gtk/gtk_theme_provider.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/gtk/gtk_theme_provider.cc b/chrome/browser/gtk/gtk_theme_provider.cc
index 66fa0e5..d7d4b6b 100644
--- a/chrome/browser/gtk/gtk_theme_provider.cc
+++ b/chrome/browser/gtk/gtk_theme_provider.cc
@@ -143,8 +143,10 @@ GtkThemeProvider::GtkThemeProvider()
fake_entry_.Own(gtk_entry_new());
// Only realized widgets receive style-set notifications, which we need to
- // broadcast new theme images and colors.
+ // broadcast new theme images and colors. Only realized widgets have style
+ // properties, too, which we query for some colors.
gtk_widget_realize(fake_frame_);
+ gtk_widget_realize(fake_window_);
signals_.Connect(fake_frame_, "style-set", G_CALLBACK(&OnStyleSet), this);
}