In MEOW mode size of toolpanel has to depend on size of MEOW window instead on size of main rt window

This commit is contained in:
heckflosse
2017-07-07 21:00:31 +02:00
parent c30683f5f6
commit aecfaa2631
4 changed files with 14 additions and 3 deletions

View File

@@ -146,6 +146,7 @@ RTWindow::RTWindow ()
if(simpleEditor) {
epanel = Gtk::manage( new EditorPanel (nullptr) );
epanel->setParent (this);
epanel->setParentWindow(this);
add (*epanel);
show_all ();
@@ -387,6 +388,7 @@ void RTWindow::addEditorPanel (EditorPanel* ep, const std::string &name)
wndEdit->addEditorPanel(ep, name);
} else {
ep->setParent (this);
ep->setParentWindow(this);
// construct closeable tab for the image
Gtk::Grid* titleGrid = Gtk::manage (new Gtk::Grid ());
@@ -868,6 +870,7 @@ void RTWindow::createSetmEditor()
// Editor panel, single-tab mode only
epanel = Gtk::manage ( new EditorPanel (fpanel) );
epanel->setParent (this);
epanel->setParentWindow(this);
// decorate tab
Gtk::Grid* const editorLabelGrid = Gtk::manage (new Gtk::Grid ());