Mercurial > octave-dspies
diff libgui/src/main-window.cc @ 16818:caf3d2a45da0
clean up some code for undocking and docking widgets
* octave-dock-widget.cc(make_window,makewidget): remove boolean parameter,
(change_floating): call make_widget and make_window without parameter
* octave-dock-wodget.h(make_window,makewidget): remove boolean parameter
* main-window.cc(set_window_layout): call make_widget and make_window without
parameter
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 23 Jun 2013 12:07:07 +0200 |
parents | 81344ade678f |
children | 944ade6e7f66 |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Sun Jun 23 15:22:27 2013 +0800 +++ b/libgui/src/main-window.cc Sun Jun 23 12:07:07 2013 +0200 @@ -553,7 +553,7 @@ bool floating = settings->value ("DockWidgets/" + name + "Floating", false).toBool (); if (floating) - widget->make_window (false); + widget->make_window (); else if (! widget->parent ()) // should not be floating but is widget->setParent (this); // reparent