diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-10 15:25:01 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-10 15:25:01 +0000 |
commit | 6449c2e5c8b027245fe5fb9942984243e4a653d7 (patch) | |
tree | 0441b7521bc04dec2f858c3ca836d1ce43b1dcb9 /gtk2_ardour/generic_pluginui.cc | |
parent | dbafe45a280cc6c33bb7dca72202c109012cd8eb (diff) |
more ardour-button-ization; fix transparency of selection rects; use "correct" cursors when entering and leaving selection rect handles; color tweaks for a few buttons
git-svn-id: svn://localhost/ardour2/branches/3.0@10527 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/generic_pluginui.cc')
-rw-r--r-- | gtk2_ardour/generic_pluginui.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 6bdd8314b9..30be93c140 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -126,7 +126,11 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol pi->ActiveChanged.connect (active_connection, invalidator (*this), boost::bind (&GenericPluginUI::processor_active_changed, this, boost::weak_ptr<Processor>(pi)), gui_context()); - bypass_button.set_active (!pi->active()); + if (!pi->active()) { + bypass_button.set_active_state (Gtkmm2ext::Active); + } else { + bypass_button.unset_active_state (); + } prefheight = 0; build (); @@ -793,16 +797,6 @@ GenericPluginUI::control_combo_changed (ControlUI* cui) } } -void -GenericPluginUI::processor_active_changed (boost::weak_ptr<Processor> weak_processor) -{ - ENSURE_GUI_THREAD (*this, &GenericPluginUI::processor_active_changed, weak_processor) - - boost::shared_ptr<Processor> processor = weak_processor.lock(); - - bypass_button.set_active (!processor || !processor->active()); -} - bool GenericPluginUI::start_updating (GdkEventAny*) { |