summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.cc
diff options
context:
space:
mode:
authorKarsten Wiese <fzuuzf@googlemail.com>2005-11-27 22:35:04 +0000
committerKarsten Wiese <fzuuzf@googlemail.com>2005-11-27 22:35:04 +0000
commit1184029638aea5fe6a53175d226371ec9214eb17 (patch)
treeb378e0c4b9b5283353c5f0f6ec63f186dfc91fa7 /gtk2_ardour/ghostregion.cc
parent1f16781c75205b43ac193596d1449de343693a6f (diff)
convert set_property("foo", bar) to property_foo() = bar
git-svn-id: svn://localhost/trunk/ardour2@133 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ghostregion.cc')
-rw-r--r--gtk2_ardour/ghostregion.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc
index 0a001da0b6..2cd2601406 100644
--- a/gtk2_ardour/ghostregion.cc
+++ b/gtk2_ardour/ghostregion.cc
@@ -16,16 +16,16 @@ GhostRegion::GhostRegion (AutomationTimeAxisView& atv, double initial_pos)
// "y", 0.0,
// NULL);
group = new ArdourCanvas::Group (*trackview.canvas_display);
- group->set_property ("x", initial_pos);
- group->set_property ("y", 0.0);
+ group->property_x() = initial_pos;
+ group->property_y() = 0.0;
base_rect = new ArdourCanvas::SimpleRect (*group);
- base_rect->set_property ("x1", (double) 0.0);
- base_rect->set_property ("y1", (double) 0.0);
- base_rect->set_property ("y2", (double) trackview.height);
- base_rect->set_property ("outline_what", (guint32) 0);
- base_rect->set_property ("outline_color_rgba", color_map[cGhostTrackBaseOutline]);
- base_rect->set_property ("fill_color_rgba", color_map[cGhostTrackBaseFill]);
+ base_rect->property_x1() = (double) 0.0;
+ 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() = color_map[cGhostTrackBaseOutline];
+ base_rect->property_fill_color_rgba() = color_map[cGhostTrackBaseFill];
group->lower_to_bottom ();
atv.add_ghost (this);
@@ -49,7 +49,7 @@ GhostRegion::set_samples_per_unit (double spu)
void
GhostRegion::set_duration (double units)
{
- base_rect->set_property ("x2", units);
+ base_rect->property_x2() = units;
}
void
@@ -59,7 +59,7 @@ GhostRegion::set_height ()
vector<WaveView*>::iterator i;
uint32_t n;
- base_rect->set_property ("y2", (double) trackview.height);
+ base_rect->property_y2() = (double) trackview.height;
ht = ((trackview.height) / (double) waves.size());
for (n = 0, i = waves.begin(); i != waves.end(); ++i, ++n) {