diff options
author | Carl Hetherington <carl@carlh.net> | 2011-05-16 18:18:13 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-05-16 18:18:13 +0000 |
commit | 739030372838d0eb71481ed8a4750fe9df6f2945 (patch) | |
tree | 39d33c6e0112bab5e9c53d0545e18d3f0ca3c079 /libs | |
parent | 29dd7bbac783b3f28527c7aa5a7a1fbe94e84e08 (diff) |
Make MIDI channel selector button colours more distinct (#3772).
git-svn-id: svn://localhost/ardour2/branches/3.0@9524 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/stateful_button.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/stateful_button.h b/libs/gtkmm2ext/gtkmm2ext/stateful_button.h index b69dba83fc..5954d4de45 100644 --- a/libs/gtkmm2ext/gtkmm2ext/stateful_button.h +++ b/libs/gtkmm2ext/gtkmm2ext/stateful_button.h @@ -35,6 +35,7 @@ class StateButton void set_visual_state (int); int get_visual_state () { return visual_state; } void set_self_managed (bool yn) { _self_managed = yn; } + virtual void set_widget_name (const std::string& name) = 0; protected: int visual_state; @@ -45,7 +46,6 @@ class StateButton bool is_toggle; virtual std::string get_widget_name() const = 0; - virtual void set_widget_name (const std::string& name) = 0; virtual Gtk::Widget* get_child_widget () = 0; void avoid_prelight_on_style_changed (const Glib::RefPtr<Gtk::Style>& style, GtkWidget* widget); @@ -59,6 +59,7 @@ class StatefulToggleButton : public StateButton, public Gtk::ToggleButton StatefulToggleButton(); explicit StatefulToggleButton(const std::string &label); ~StatefulToggleButton() {} + void set_widget_name (const std::string& name); protected: void on_realize (); @@ -68,7 +69,6 @@ class StatefulToggleButton : public StateButton, public Gtk::ToggleButton Gtk::Widget* get_child_widget (); std::string get_widget_name() const { return get_name(); } - void set_widget_name (const std::string& name); }; class StatefulButton : public StateButton, public Gtk::Button @@ -77,6 +77,7 @@ class StatefulButton : public StateButton, public Gtk::Button StatefulButton(); explicit StatefulButton(const std::string &label); virtual ~StatefulButton() {} + void set_widget_name (const std::string& name); protected: void on_realize (); @@ -85,7 +86,6 @@ class StatefulButton : public StateButton, public Gtk::Button Gtk::Widget* get_child_widget (); std::string get_widget_name() const { return get_name(); } - void set_widget_name (const std::string& name); }; }; |