summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/custom_button.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 23:36:34 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 23:36:34 +0000
commitba7a68dfbf6f30e5b3efc3f5034499a952463d96 (patch)
treea90622682db23e4983778a96512995378f5ca284 /chrome/browser/gtk/custom_button.cc
parent4a560eddc550fbe5761aceb1461ff91e9097a3d3 (diff)
downloadchromium_src-ba7a68dfbf6f30e5b3efc3f5034499a952463d96.zip
chromium_src-ba7a68dfbf6f30e5b3efc3f5034499a952463d96.tar.gz
chromium_src-ba7a68dfbf6f30e5b3efc3f5034499a952463d96.tar.bz2
Restore RTL icons to CustomDrawButtonBase.
Since moving from ResourceBundle to ThemeProvider, we needed to plumb through GetRTLEnabledPixbufNamed in ThemeProvider. Review URL: http://codereview.chromium.org/149483 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20568 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/custom_button.cc')
-rw-r--r--chrome/browser/gtk/custom_button.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/chrome/browser/gtk/custom_button.cc b/chrome/browser/gtk/custom_button.cc
index d2e092f..b49c422 100644
--- a/chrome/browser/gtk/custom_button.cc
+++ b/chrome/browser/gtk/custom_button.cc
@@ -80,16 +80,15 @@ void CustomDrawButtonBase::Observe(NotificationType type,
DCHECK(theme_provider_);
DCHECK(NotificationType::BROWSER_THEME_CHANGED == type);
- // TODO(tc): Add GetRTLEnabledPixbufNamed to ThemeProviderGtk.
- pixbufs_[GTK_STATE_NORMAL] =
- normal_id_ ? theme_provider_->GetPixbufNamed(normal_id_) : NULL;
- pixbufs_[GTK_STATE_ACTIVE] =
- active_id_ ? theme_provider_->GetPixbufNamed(active_id_) : NULL;
- pixbufs_[GTK_STATE_PRELIGHT] =
- highlight_id_ ? theme_provider_->GetPixbufNamed(highlight_id_) : NULL;
+ pixbufs_[GTK_STATE_NORMAL] = normal_id_ ?
+ theme_provider_->GetRTLEnabledPixbufNamed(normal_id_) : NULL;
+ pixbufs_[GTK_STATE_ACTIVE] = active_id_ ?
+ theme_provider_->GetRTLEnabledPixbufNamed(active_id_) : NULL;
+ pixbufs_[GTK_STATE_PRELIGHT] = highlight_id_ ?
+ theme_provider_->GetRTLEnabledPixbufNamed(highlight_id_) : NULL;
pixbufs_[GTK_STATE_SELECTED] = NULL;
- pixbufs_[GTK_STATE_INSENSITIVE] =
- depressed_id_ ? theme_provider_->GetPixbufNamed(depressed_id_) : NULL;
+ pixbufs_[GTK_STATE_INSENSITIVE] = depressed_id_ ?
+ theme_provider_->GetRTLEnabledPixbufNamed(depressed_id_) : NULL;
}
CustomDrawButton::CustomDrawButton(int normal_id, int active_id,