add ::on_name_changed() to ArdourButton, to use recently added ::on_name_changed...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 6 Mar 2014 14:49:00 +0000 (09:49 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 6 Mar 2014 14:49:00 +0000 (09:49 -0500)
gtk2_ardour/ardour_button.cc
gtk2_ardour/ardour_button.h

index 1d967eb8783824e3916221087bd6a682205f2f09..5a1dc11246c10c8d50fb8fa3040dce9b1ee6e496 100644 (file)
@@ -830,6 +830,12 @@ ArdourButton::on_style_changed (const RefPtr<Gtk::Style>&)
        set_colors ();
 }
 
+void
+ArdourButton::on_name_changed ()
+{
+       set_colors ();
+}
+
 void
 ArdourButton::setup_led_rect ()
 {
index 6fcdb1c5b15cd6d41c0ef0639c84070386776691..cf47fd1d309f13014ecce95b2b02b554fbacd075 100644 (file)
@@ -103,6 +103,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
        void on_size_request (Gtk::Requisition* req);
        void on_size_allocate (Gtk::Allocation&);
        void on_style_changed (const Glib::RefPtr<Gtk::Style>&);
+       void on_name_changed ();
        bool on_enter_notify_event (GdkEventCrossing*);
        bool on_leave_notify_event (GdkEventCrossing*);