summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/gtk_theme_provider.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-21 19:21:50 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-21 19:21:50 +0000
commit6ee6185045be58242771fe6e0504b4147e0c1a2d (patch)
treedafa4fb063382b5e20f37c67bdb1dfc29d545741 /chrome/browser/gtk/gtk_theme_provider.h
parent355284254f9997a21409da26b58f25f34bfd5d64 (diff)
downloadchromium_src-6ee6185045be58242771fe6e0504b4147e0c1a2d.zip
chromium_src-6ee6185045be58242771fe6e0504b4147e0c1a2d.tar.gz
chromium_src-6ee6185045be58242771fe6e0504b4147e0c1a2d.tar.bz2
GTK Themes: Get text color from a label object; this should fix some theme text problems.
GTK Themes can set colors on a per widget basis, and many do. Previously we were getting the text color from a GtkWindow object, which sometimes is wrong--the theme just sets the text color on labels... Review URL: http://codereview.chromium.org/159143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21200 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_theme_provider.h')
-rw-r--r--chrome/browser/gtk/gtk_theme_provider.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/gtk/gtk_theme_provider.h b/chrome/browser/gtk/gtk_theme_provider.h
index ae3537e..424ba76 100644
--- a/chrome/browser/gtk/gtk_theme_provider.h
+++ b/chrome/browser/gtk/gtk_theme_provider.h
@@ -90,9 +90,10 @@ class GtkThemeProvider : public BrowserThemeProvider,
// Whether we should be using gtk rendering.
bool use_gtk_;
- // A GtkWidget that exists only so we can look at its properties (and take
- // its colors).
+ // GtkWidgets that exist only so we can look at their properties (and take
+ // their colors).
GtkWidget* fake_window_;
+ GtkWidget* fake_label_;
// A list of all GtkChromeButton instances. We hold on to these to notify
// them of theme changes.