diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index e816ec1cc..7e69eae00 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -203,6 +203,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel) // ShowHideSidePanels tbShowHideSidePanels = new Gtk::ToggleButton (); iShowHideSidePanels = new RTImage ("crossed-arrows-out.png"); + iShowHideSidePanels_exit = new RTImage ("crossed-arrows-in.png"); tbShowHideSidePanels->set_relief(Gtk::RELIEF_NONE); tbShowHideSidePanels->set_active (false); tbShowHideSidePanels->set_tooltip_markup (M("MAIN_BUTTON_SHOWHIDESIDEPANELS_TOOLTIP")); @@ -1325,6 +1326,10 @@ void EditorPanel::toggleSidePanels(){ tbTopPanel_1->set_active (!bAllSidePanelsVisible); tbRightPanel_1->set_active (!bAllSidePanelsVisible); hidehp->set_active (!bAllSidePanelsVisible); + if (bAllSidePanelsVisible == false) + tbShowHideSidePanels->set_image (*iShowHideSidePanels); + else + tbShowHideSidePanels->set_image (*iShowHideSidePanels_exit); } void EditorPanel::toggleSidePanelsZoomFit() { diff --git a/rtgui/editorpanel.h b/rtgui/editorpanel.h index 2bad97523..4a811a215 100644 --- a/rtgui/editorpanel.h +++ b/rtgui/editorpanel.h @@ -69,6 +69,7 @@ class EditorPanel : public Gtk::VBox, Gtk::Image *iTopPanel_1_Show, *iTopPanel_1_Hide; Gtk::Image *iRightPanel_1_Show, *iRightPanel_1_Hide; Gtk::Image *iShowHideSidePanels; + Gtk::Image *iShowHideSidePanels_exit; Gtk::Image *iBeforeLockON, *iBeforeLockOFF; Gtk::VBox *leftbox; Gtk::VBox *vboxright;