diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-02-14 17:19:58 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-02-14 17:19:58 +0000 |
commit | 517d411bb013d27f0df188584bbfa684438cc544 (patch) | |
tree | 46662c4cc005a8007f8aed65ae9b76d3deafbd42 /gtk2_ardour/ardour_ui_dialogs.cc | |
parent | 898fba7b54b19ffddb47fd384c9b04115bc449d9 (diff) |
new color management design starts to take shape (canvas color only for now)
git-svn-id: svn://localhost/trunk/ardour2@326 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index fcd8d51599..08501e746a 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -34,6 +34,7 @@ #include "public_editor.h" #include "route_params_ui.h" #include "sfdb_ui.h" +#include "color_manager.h" #include "i18n.h" @@ -287,6 +288,22 @@ ARDOUR_UI::toggle_location_window () } } +void +ARDOUR_UI::toggle_color_manager () +{ + RefPtr<Action> act = ActionManager::get_action (X_("Common"), X_("ToggleColorManager")); + if (act) { + RefPtr<ToggleAction> tact = RefPtr<ToggleAction>::cast_dynamic(act); + + if (tact->get_active()) { + color_manager->show_all (); + color_manager->present (); + } else { + color_manager->hide (); + } + } +} + int ARDOUR_UI::create_route_params () { |