Depending on the Show/Hide panel status, either crossed-arrows-out.png or crossed-arrows-in.png icon is displayed (issue 1094).

This commit is contained in:
Philippe Hupe
2011-11-07 19:18:37 +01:00
parent eb6fd01dae
commit 47df7710b0
2 changed files with 6 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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;