summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-29 19:52:24 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-29 19:52:24 +0000
commit90d7f142d5953caa72855290ad1672e1f5e84794 (patch)
tree8b3939982658c21eddef7107e91b0461b7e0d889
parent83967ab93d24a9e50067a1fa2fdd2ae0e2c1469e (diff)
downloadchromium_src-90d7f142d5953caa72855290ad1672e1f5e84794.zip
chromium_src-90d7f142d5953caa72855290ad1672e1f5e84794.tar.gz
chromium_src-90d7f142d5953caa72855290ad1672e1f5e84794.tar.bz2
GTK: Force the labels in the translate infobar to black.
BUG=none TEST=none Review URL: http://codereview.chromium.org/1519007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42979 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/gtk/translate_infobars.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/gtk/translate_infobars.cc b/chrome/browser/gtk/translate_infobars.cc
index 350e0c15..06ee9a9 100644
--- a/chrome/browser/gtk/translate_infobars.cc
+++ b/chrome/browser/gtk/translate_infobars.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/translate/translate_infobars_delegates.h"
#include "chrome/browser/translate/options_menu_model.h"
#include "chrome/common/notification_service.h"
+#include "gfx/gtk_util.h"
#include "grit/app_resources.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
@@ -174,17 +175,21 @@ void TranslateInfoBar::BuildWidgets() {
// inside |translate_box_| and selectively show and hide them.
label_1_ = gtk_label_new(NULL);
gtk_box_pack_start(GTK_BOX(translate_box_), label_1_, FALSE, FALSE, 0);
+ gtk_widget_modify_fg(label_1_, GTK_STATE_NORMAL, &gfx::kGdkBlack);
label_2_ = gtk_label_new(NULL);
gtk_box_pack_start(GTK_BOX(translate_box_), label_2_, FALSE, FALSE, 0);
+ gtk_widget_modify_fg(label_2_, GTK_STATE_NORMAL, &gfx::kGdkBlack);
label_3_ = gtk_label_new(NULL);
gtk_box_pack_start(GTK_BOX(translate_box_), label_3_, FALSE, FALSE, 0);
+ gtk_widget_modify_fg(label_3_, GTK_STATE_NORMAL, &gfx::kGdkBlack);
translating_label_ = gtk_label_new(
l10n_util::GetStringUTF8(IDS_TRANSLATE_INFOBAR_TRANSLATING).c_str());
gtk_box_pack_start(GTK_BOX(translate_box_), translating_label_,
FALSE, FALSE, 0);
+ gtk_widget_modify_fg(translating_label_, GTK_STATE_NORMAL, &gfx::kGdkBlack);
accept_button_ = gtk_button_new_with_label(
l10n_util::GetStringUTF8(IDS_TRANSLATE_INFOBAR_ACCEPT).c_str());