GUI: Clean up creation of GUIs, hopefully fixing the crash-on-destroy this time.
commita2b8557b93b490756de116c8a055e29c3281a8cf
authorKrzysztof Foltman <wdev@foltman.com>
Sat, 10 Jan 2015 12:30:11 +0000 (10 12:30 +0000)
committerKrzysztof Foltman <wdev@foltman.com>
Sat, 10 Jan 2015 12:30:11 +0000 (10 12:30 +0000)
tree5d0800ad46706b7ca531ce7c42a350cf5e316f35
parentc67ecf01395f78a2a754f891729c815f1a7f760a
GUI: Clean up creation of GUIs, hopefully fixing the crash-on-destroy this time.

The control/container hierarchy has been flattened, and a single stack is now
used to create both controls and containers, which helps with objects that
are essentially both (notebook container in particular). Also, the new code
is shorter and less kludgey.

Also, the control/container C++ object destruction is called from the widget's
destroy handler, instead of the other way around. This required explicit
removal of the controls in gui_cleanup, to avoid widgets lingering past the
lifetime of their finalize method.
src/Makefile.am
src/calf/gui.h
src/calf/gui_controls.h
src/gui.cpp
src/gui_controls.cpp
src/lv2gui.cpp