summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.cc
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2007-06-29 17:13:09 +0000
committerDoug McLain <doug@nostar.net>2007-06-29 17:13:09 +0000
commit4c000c13eecf4cb3d63be304fc0056ddaa35bb21 (patch)
tree257f65636491f137abb7d3282661080bc5dfce8b /gtk2_ardour/ghostregion.cc
parenta67dcdc267bc133cab63e0e6355edbfa5dacb6ab (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/ghostregion.cc')
-rw-r--r--gtk2_ardour/ghostregion.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc
index c9b4217b24..71bc8de694 100644
--- a/gtk2_ardour/ghostregion.cc
+++ b/gtk2_ardour/ghostregion.cc
@@ -22,6 +22,7 @@
#include "ghostregion.h"
#include "automation_time_axis.h"
#include "rgb_macros.h"
+#include "ardour_ui.h"
using namespace Editing;
using namespace ArdourCanvas;
@@ -44,8 +45,8 @@ GhostRegion::GhostRegion (AutomationTimeAxisView& atv, double initial_pos)
base_rect->property_y1() = (double) 0.0;
base_rect->property_y2() = (double) trackview.height;
base_rect->property_outline_what() = (guint32) 0;
- base_rect->property_outline_color_rgba() = Config->canvasvar_GhostTrackBase.get();
- base_rect->property_fill_color_rgba() = Config->canvasvar_GhostTrackBase.get();
+ base_rect->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_GhostTrackBase.get();
+ base_rect->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_GhostTrackBase.get();
group->lower_to_bottom ();
atv.add_ghost (this);
@@ -92,13 +93,13 @@ GhostRegion::set_height ()
void
GhostRegion::set_colors ()
{
- base_rect->property_outline_color_rgba() = Config->canvasvar_GhostTrackBase.get();
- base_rect->property_fill_color_rgba() = Config->canvasvar_GhostTrackBase.get();
+ base_rect->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_GhostTrackBase.get();
+ base_rect->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_GhostTrackBase.get();
for (uint32_t n=0; n < waves.size(); ++n) {
- waves[n]->property_wave_color() = Config->canvasvar_GhostTrackWave.get();
+ waves[n]->property_wave_color() = ARDOUR_UI::config()->canvasvar_GhostTrackWave.get();
- waves[n]->property_clip_color() = Config->canvasvar_GhostTrackWaveClip.get();
- waves[n]->property_zero_color() = Config->canvasvar_GhostTrackZeroLine.get();
+ waves[n]->property_clip_color() = ARDOUR_UI::config()->canvasvar_GhostTrackWaveClip.get();
+ waves[n]->property_zero_color() = ARDOUR_UI::config()->canvasvar_GhostTrackZeroLine.get();
}
}