summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-08-30 22:33:39 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:36:58 +1000
commit634207dd6a9ad921adfa6d8a284d83ec6f88eab3 (patch)
tree25d55d29cb3c8c3d53bbcde10dfd622fd1939d2f /gtk2_ardour
parent13d2670e967b21463452dc50b36e07e764b84911 (diff)
Use AxisView::get/set_gui_property API in MixerStrip class
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mixer_strip.cc16
1 files changed, 6 insertions, 10 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 91f93f9546..81ff83b7a6 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -57,6 +57,7 @@
#include "ardour/vca_manager.h"
#include "ardour_window.h"
+#include "enums_convert.h"
#include "mixer_strip.h"
#include "mixer_ui.h"
#include "keyboard.h"
@@ -741,9 +742,9 @@ MixerStrip::set_stuff_from_route ()
{
/* if width is not set, it will be set by the MixerUI or editor */
- string str = gui_property ("strip-width");
- if (!str.empty()) {
- set_width_enum (Width (string_2_enum (str, _width)), this);
+ Width width;
+ if (get_gui_property ("strip-width", width)) {
+ set_width_enum (width, this);
}
}
@@ -762,7 +763,7 @@ MixerStrip::set_width_enum (Width w, void* owner)
_width = w;
if (_width_owner == this) {
- set_gui_property ("strip-width", enum_2_string (_width));
+ set_gui_property ("strip-width", _width);
}
set_button_names ();
@@ -838,12 +839,7 @@ void
MixerStrip::set_packed (bool yn)
{
_packed = yn;
-
- if (_packed) {
- set_gui_property ("visible", true);
- } else {
- set_gui_property ("visible", false);
- }
+ set_gui_property ("visible", _packed);
}