From 47df7710b0e0d0ea46ce4fb9fd15e301ef4e7904 Mon Sep 17 00:00:00 2001 From: Philippe Hupe Date: Mon, 7 Nov 2011 19:18:37 +0100 Subject: [PATCH] Depending on the Show/Hide panel status, either crossed-arrows-out.png or crossed-arrows-in.png icon is displayed (issue 1094). --- rtgui/editorpanel.cc | 5 +++++ rtgui/editorpanel.h | 1 + 2 files changed, 6 insertions(+) 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;