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

Unified Diff: chrome/browser/ui/gtk/gtk_theme_service.cc

Issue 10948037: [gtk] fix theming of content settings bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months 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 | « chrome/browser/ui/gtk/gtk_theme_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_theme_service.cc
diff --git a/chrome/browser/ui/gtk/gtk_theme_service.cc b/chrome/browser/ui/gtk/gtk_theme_service.cc
index 27af31c70594800493adc8f666c604456712c603..99fd753808abbbfe7c205e6cd56b6c509331fd5e 100644
--- a/chrome/browser/ui/gtk/gtk_theme_service.cc
+++ b/chrome/browser/ui/gtk/gtk_theme_service.cc
@@ -410,10 +410,10 @@ GtkWidget* GtkThemeService::BuildChromeLinkButton(const std::string& text) {
}
GtkWidget* GtkThemeService::BuildLabel(const std::string& text,
- GdkColor color) {
+ const GdkColor& color) {
GtkWidget* label = gtk_label_new(text.empty() ? NULL : text.c_str());
if (!use_gtk_)
- gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color);
+ gtk_util::SetLabelColor(label, &color);
labels_.insert(std::make_pair(label, color));
signals_->Connect(label, "destroy", G_CALLBACK(OnDestroyLabelThunk), this);
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698