diff options
author | Doug McLain <doug@nostar.net> | 2007-06-29 17:13:09 +0000 |
---|---|---|
committer | Doug McLain <doug@nostar.net> | 2007-06-29 17:13:09 +0000 |
commit | 4c000c13eecf4cb3d63be304fc0056ddaa35bb21 (patch) | |
tree | 257f65636491f137abb7d3282661080bc5dfce8b /gtk2_ardour/automation_line.cc | |
parent | a67dcdc267bc133cab63e0e6355edbfa5dacb6ab (diff) |
Moved canvas colors and theme file selection into new ui specific config system
git-svn-id: svn://localhost/ardour2/trunk@2086 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index f6b54cd128..948fe358e8 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -69,8 +69,8 @@ ControlPoint::ControlPoint (AutomationLine& al) item = new Canvas::SimpleRect (line.canvas_group()); item->property_draw() = true; item->property_fill() = false; - item->property_fill_color_rgba() = Config->canvasvar_ControlPointFill.get(); - item->property_outline_color_rgba() = Config->canvasvar_ControlPointOutline.get(); + item->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_ControlPointFill.get(); + item->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_ControlPointOutline.get(); item->property_outline_pixels() = 1; item->set_data ("control_point", this); item->signal_event().connect (mem_fun (this, &ControlPoint::event_handler)); @@ -97,7 +97,7 @@ ControlPoint::ControlPoint (const ControlPoint& other, bool dummy_arg_to_force_s item = new Canvas::SimpleRect (line.canvas_group()); item->property_fill() = false; - item->property_outline_color_rgba() = Config->canvasvar_EnteredControlPointOutline.get(); + item->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_EnteredControlPointOutline.get(); item->property_outline_pixels() = 1; /* NOTE: no event handling in copied ControlPoints */ @@ -148,10 +148,10 @@ ControlPoint::show_color (bool entered, bool hide_too) { if (entered) { if (selected) { - item->property_outline_color_rgba() = Config->canvasvar_EnteredControlPointSelected.get(); + item->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_EnteredControlPointSelected.get(); set_visible(true); } else { - item->property_outline_color_rgba() = Config->canvasvar_EnteredControlPoint.get(); + item->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_EnteredControlPoint.get(); if (hide_too) { set_visible(false); } @@ -159,10 +159,10 @@ ControlPoint::show_color (bool entered, bool hide_too) } else { if (selected) { - item->property_outline_color_rgba() = Config->canvasvar_ControlPointSelected.get(); + item->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_ControlPointSelected.get(); set_visible(true); } else { - item->property_outline_color_rgba() = Config->canvasvar_ControlPoint.get(); + item->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_ControlPoint.get(); if (hide_too) { set_visible(false); } @@ -1148,7 +1148,7 @@ AutomationLine::set_selected_points (PointSelection& points) } void AutomationLine::set_colors() { - set_line_color( Config->canvasvar_AutomationLine.get() ); + set_line_color( ARDOUR_UI::config()->canvasvar_AutomationLine.get() ); for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) { (*i)->show_color (false, !points_visible); } |