diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-06 14:39:30 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-06 14:43:58 -0700 |
commit | 39e0c0a084a64ee2862bedb6bbc71129ab078b7a (patch) | |
tree | b818f1bbc6bb239d1fbb206b727a347fe1afbce4 /gtk2_ardour | |
parent | c791d5970f4956cbe96f116dd3811ffae5f112ec (diff) |
add AxisView::remove_gui_property()
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/axis_view.cc | 7 | ||||
-rw-r--r-- | gtk2_ardour/axis_view.h | 1 |
2 files changed, 8 insertions, 0 deletions
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 @@ -94,6 +94,13 @@ AxisView::get_gui_property (const std::string& property_name, std::string& value } 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) { property_hashtable.erase (property_name); 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)); |