X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=blobdiff_plain;f=gtk2_ardour%2Foption_editor.h;h=749df8f90c70e5631770da0e315b19fa44c71ca2;hp=d6738889f3dd45a5d8d7618aef5528135c6a1b9e;hb=9ccc56e1625;hpb=474d68c05132291fd8eb200006e7e63aebefdc8d diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index d6738889f3..749df8f90c 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -193,6 +193,7 @@ class CheckOption : public OptionEditorComponent , public Gtkmm2ext::Activatable { public: CheckOption (std::string const &, std::string const &, Glib::RefPtr act ); + virtual ~CheckOption (); void set_state_from_config () {} void parameter_changed (std::string const &) {} void add_to_page (OptionEditorPage*); @@ -203,17 +204,18 @@ public: Gtk::Widget& tip_widget() { return *_button; } +protected: void action_toggled (); void action_sensitivity_changed () {} void action_visibility_changed () {} -protected: virtual void toggled (); - sigc::slot _get; ///< slot to get the configuration variable's value - sigc::slot _set; ///< slot to set the configuration variable's value Gtk::CheckButton* _button; ///< UI button Gtk::Label* _label; ///< label for button, so we can use markup + +private: + sigc::connection _callback_connection; }; /** Component which provides the UI to handle a boolean option using a GTK CheckButton */