Partially hidden toolbars can now be scrolled with the mouse wheel

...thanks to the new MyScrolledToolbar class (guiutils.h/cc). This is
valid for the FileBrowser tab (first and second line can be scrolled
individually) and the top and bottom bar of the Editor(s) tab.

see #4035
This commit is contained in:
Hombre
2018-09-02 10:47:44 +02:00
parent 61e033ae14
commit 20118c4019
5 changed files with 97 additions and 17 deletions

View File

@@ -630,7 +630,9 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
beforeAfterBox->set_name ("BeforeAfterContainer");
beforeAfterBox->pack_start (*afterBox);
editbox->pack_start (*toolBarPanel, Gtk::PACK_SHRINK, 2);
MyScrolledToolbar *stb1 = Gtk::manage(new MyScrolledToolbar());
stb1->add(*toolBarPanel);
editbox->pack_start (*stb1, Gtk::PACK_SHRINK, 2);
editbox->pack_start (*beforeAfterBox);
// build right side panel
@@ -763,7 +765,10 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
iops->attach_next_to (*tbShowHideSidePanels, Gtk::POS_RIGHT, 1, 1);
iops->attach_next_to (*tbRightPanel_1, Gtk::POS_RIGHT, 1, 1);
editbox->pack_start (*iops, Gtk::PACK_SHRINK, 0);
MyScrolledToolbar *stb2 = Gtk::manage(new MyScrolledToolbar());
stb2->add(*iops);
editbox->pack_start (*stb2, Gtk::PACK_SHRINK, 0);
editbox->show_all ();
// build screen