diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-03-30 15:27:18 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-03-30 15:27:23 -0400 |
commit | 75e0f5a023b5485a6f6efb3ebd6f2ae21f5a041b (patch) | |
tree | 1f8c91929737d61ba785b463076f9b92427655ff /gtk2_ardour/gui_object.h | |
parent | 16be88cdb6bdf1db167de6d3488e3599e6d9eeb1 (diff) |
remove GUI object state when tracks/busses are removed.
Not doing this results in accumulation of useless GUI object state which is never cleaned up.
Taken from work by Grygorii Zharun.
Diffstat (limited to 'gtk2_ardour/gui_object.h')
-rw-r--r-- | gtk2_ardour/gui_object.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/gui_object.h b/gtk2_ardour/gui_object.h index ee6d1cdf4c..aff025b2d5 100644 --- a/gtk2_ardour/gui_object.h +++ b/gtk2_ardour/gui_object.h @@ -47,12 +47,14 @@ public: s << val; child->add_property (prop_name.c_str(), s.str()); } - + std::list<std::string> all_ids () const; static XMLNode* get_node (const XMLNode *, const std::string &); XMLNode* get_or_add_node (const std::string &); static XMLNode* get_or_add_node (XMLNode *, const std::string &); + + void remove_node (const std::string& id); private: XMLNode _state; |