| Index: chrome/browser/gtk/back_forward_button_gtk.cc
|
| diff --git a/chrome/browser/gtk/back_forward_button_gtk.cc b/chrome/browser/gtk/back_forward_button_gtk.cc
|
| index f354ab453bead6d74cdeeda9b6766979c949a641..dd35a0b3c0d3ef6c4d7ddefebff2bed2eb0fd1fe 100644
|
| --- a/chrome/browser/gtk/back_forward_button_gtk.cc
|
| +++ b/chrome/browser/gtk/back_forward_button_gtk.cc
|
| @@ -25,20 +25,24 @@ BackForwardButtonGtk::BackForwardButtonGtk(Browser* browser, bool is_forward)
|
| last_release_event_flags_(0),
|
| show_menu_factory_(this) {
|
| int normal, active, highlight, depressed, tooltip;
|
| + const char* stock;
|
| if (is_forward) {
|
| normal = IDR_FORWARD;
|
| active = IDR_FORWARD_P;
|
| highlight = IDR_FORWARD_H;
|
| depressed = IDR_FORWARD_D;
|
| tooltip = IDS_TOOLTIP_FORWARD;
|
| + stock = GTK_STOCK_GO_FORWARD;
|
| } else {
|
| normal = IDR_BACK;
|
| active = IDR_BACK_P;
|
| highlight = IDR_BACK_H;
|
| depressed = IDR_BACK_D;
|
| tooltip = IDS_TOOLTIP_BACK;
|
| + stock = GTK_STOCK_GO_BACK;
|
| }
|
| - button_.reset(new CustomDrawButton(normal, active, highlight, depressed));
|
| + button_.reset(new CustomDrawButton(normal, active, highlight, depressed,
|
| + stock));
|
| gtk_widget_set_tooltip_text(widget(),
|
| l10n_util::GetStringUTF8(tooltip).c_str());
|
| menu_model_.reset(new BackForwardMenuModelGtk(browser,
|
| @@ -72,6 +76,10 @@ void BackForwardButtonGtk::StoppedShowingMenu() {
|
| button_->UnsetPaintOverride();
|
| }
|
|
|
| +void BackForwardButtonGtk::SetUseSystemTheme(bool use_gtk) {
|
| + button_->SetUseSystemTheme(use_gtk);
|
| +}
|
| +
|
| void BackForwardButtonGtk::ShowBackForwardMenu() {
|
| menu_.reset(new MenuGtk(menu_model_.get(), true));
|
| button_->SetPaintOverride(GTK_STATE_ACTIVE);
|
|
|