GenericUI: only connect one PropertyChanged callback
[ardour.git] / gtk2_ardour / plugin_ui.h
index 721289ac0b3adc3c41c4ac12a1fb9db00dd0802f..001054bae9b8b7639e55f111a26c797042f1bd0e 100644 (file)
@@ -263,7 +263,9 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
        std::vector<ControlUI*>   input_controls;
        std::vector<ControlUI*>   input_controls_with_automation;
        std::vector<ControlUI*>   output_controls;
+
        sigc::connection screen_update_connection;
+
        void output_update();
 
        void build ();
@@ -291,12 +293,12 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
        bool integer_printer (char* buf, Gtk::Adjustment &, ControlUI *);
        bool midinote_printer(char* buf, Gtk::Adjustment &, ControlUI *);
 
-       void set_property (const ARDOUR::ParameterDescriptor& desc,
-                          Gtk::FileChooserButton*            widget);
-       void property_changed (uint32_t key, const ARDOUR::Variant& value);
+       typedef std::map<uint32_t, Gtk::FileChooserButton*> FilePathControls;
+       FilePathControls _filepath_controls;
+       void set_path_property (const ARDOUR::ParameterDescriptor& desc,
+                               Gtk::FileChooserButton*            widget);
+       void path_property_changed (uint32_t key, const ARDOUR::Variant& value);
 
-       typedef std::map<uint32_t, Gtk::FileChooserButton*> PropertyControls;
-       PropertyControls _property_controls;
 };
 
 class PluginUIWindow : public ArdourWindow