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:
@@ -203,6 +203,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
|
|||||||
// ShowHideSidePanels
|
// ShowHideSidePanels
|
||||||
tbShowHideSidePanels = new Gtk::ToggleButton ();
|
tbShowHideSidePanels = new Gtk::ToggleButton ();
|
||||||
iShowHideSidePanels = new RTImage ("crossed-arrows-out.png");
|
iShowHideSidePanels = new RTImage ("crossed-arrows-out.png");
|
||||||
|
iShowHideSidePanels_exit = new RTImage ("crossed-arrows-in.png");
|
||||||
tbShowHideSidePanels->set_relief(Gtk::RELIEF_NONE);
|
tbShowHideSidePanels->set_relief(Gtk::RELIEF_NONE);
|
||||||
tbShowHideSidePanels->set_active (false);
|
tbShowHideSidePanels->set_active (false);
|
||||||
tbShowHideSidePanels->set_tooltip_markup (M("MAIN_BUTTON_SHOWHIDESIDEPANELS_TOOLTIP"));
|
tbShowHideSidePanels->set_tooltip_markup (M("MAIN_BUTTON_SHOWHIDESIDEPANELS_TOOLTIP"));
|
||||||
@@ -1325,6 +1326,10 @@ void EditorPanel::toggleSidePanels(){
|
|||||||
tbTopPanel_1->set_active (!bAllSidePanelsVisible);
|
tbTopPanel_1->set_active (!bAllSidePanelsVisible);
|
||||||
tbRightPanel_1->set_active (!bAllSidePanelsVisible);
|
tbRightPanel_1->set_active (!bAllSidePanelsVisible);
|
||||||
hidehp->set_active (!bAllSidePanelsVisible);
|
hidehp->set_active (!bAllSidePanelsVisible);
|
||||||
|
if (bAllSidePanelsVisible == false)
|
||||||
|
tbShowHideSidePanels->set_image (*iShowHideSidePanels);
|
||||||
|
else
|
||||||
|
tbShowHideSidePanels->set_image (*iShowHideSidePanels_exit);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorPanel::toggleSidePanelsZoomFit() {
|
void EditorPanel::toggleSidePanelsZoomFit() {
|
||||||
|
@@ -69,6 +69,7 @@ class EditorPanel : public Gtk::VBox,
|
|||||||
Gtk::Image *iTopPanel_1_Show, *iTopPanel_1_Hide;
|
Gtk::Image *iTopPanel_1_Show, *iTopPanel_1_Hide;
|
||||||
Gtk::Image *iRightPanel_1_Show, *iRightPanel_1_Hide;
|
Gtk::Image *iRightPanel_1_Show, *iRightPanel_1_Hide;
|
||||||
Gtk::Image *iShowHideSidePanels;
|
Gtk::Image *iShowHideSidePanels;
|
||||||
|
Gtk::Image *iShowHideSidePanels_exit;
|
||||||
Gtk::Image *iBeforeLockON, *iBeforeLockOFF;
|
Gtk::Image *iBeforeLockON, *iBeforeLockOFF;
|
||||||
Gtk::VBox *leftbox;
|
Gtk::VBox *leftbox;
|
||||||
Gtk::VBox *vboxright;
|
Gtk::VBox *vboxright;
|
||||||
|
Reference in New Issue
Block a user