From 39e0c0a084a64ee2862bedb6bbc71129ab078b7a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 6 Feb 2020 14:39:30 -0700 Subject: add AxisView::remove_gui_property() --- gtk2_ardour/axis_view.cc | 7 +++++++ gtk2_ardour/axis_view.h | 1 + 2 files changed, 8 insertions(+) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/axis_view.cc b/gtk2_ardour/axis_view.cc index 03ae8a4a57..c946d3cd8d 100644 --- a/gtk2_ardour/axis_view.cc +++ b/gtk2_ardour/axis_view.cc @@ -93,6 +93,13 @@ AxisView::get_gui_property (const std::string& property_name, std::string& value return false; } +void +AxisView::remove_gui_property (const std::string& property_name) +{ + property_hashtable.erase (property_name); + gui_object_state().remove_property (state_id(), property_name); +} + void AxisView::set_gui_property (const std::string& property_name, const std::string& value) { diff --git a/gtk2_ardour/axis_view.h b/gtk2_ardour/axis_view.h index 3a3d901317..1a1686add9 100644 --- a/gtk2_ardour/axis_view.h +++ b/gtk2_ardour/axis_view.h @@ -84,6 +84,7 @@ public: } void set_gui_property (const std::string& property_name, const std::string& value); + void remove_gui_property (const std::string& property_name); void set_gui_property (const std::string& property_name, const char* value) { set_gui_property (property_name, std::string(value)); -- cgit v1.2.3