summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2005-09-25 22:26:56 +0000
committerTaybin Rutkin <taybin@taybin.com>2005-09-25 22:26:56 +0000
commit14d43ca9fe28a8309b4a52fa85e2b0c64a92248b (patch)
tree0ca37421248da4aaba70869fbc0156bf64e3b0ce /gtk2_ardour/ghostregion.cc
parentd38e2213d79b1c8952c776a3b60f7709457edc0c (diff)
Switched to use libgnomecanvas (not the C++ one).
git-svn-id: svn://localhost/trunk/ardour2@30 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ghostregion.cc')
-rw-r--r--gtk2_ardour/ghostregion.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc
index 8caacac3b3..32c25b74cc 100644
--- a/gtk2_ardour/ghostregion.cc
+++ b/gtk2_ardour/ghostregion.cc
@@ -8,14 +8,14 @@ using namespace Editing;
GhostRegion::GhostRegion (AutomationTimeAxisView& atv, double initial_pos)
: trackview (atv)
{
- group = gtk_canvas_item_new (GTK_CANVAS_GROUP(trackview.canvas_display),
- gtk_canvas_group_get_type(),
+ group = gnome_canvas_item_new (GNOME_CANVAS_GROUP(trackview.canvas_display),
+ gnome_canvas_group_get_type(),
"x", initial_pos,
"y", 0.0,
NULL);
- base_rect = gtk_canvas_item_new (GTK_CANVAS_GROUP(group),
- gtk_canvas_simplerect_get_type(),
+ base_rect = gnome_canvas_item_new (GNOME_CANVAS_GROUP(group),
+ gnome_canvas_simplerect_get_type(),
"x1", (double) 0.0,
"y1", (double) 0.0,
"y2", (double) trackview.height,
@@ -24,7 +24,7 @@ GhostRegion::GhostRegion (AutomationTimeAxisView& atv, double initial_pos)
"fill_color_rgba", color_map[cGhostTrackBaseFill],
NULL);
- gtk_canvas_item_lower_to_bottom (group);
+ gnome_canvas_item_lower_to_bottom (group);
atv.add_ghost (this);
}
@@ -38,31 +38,31 @@ GhostRegion::~GhostRegion ()
void
GhostRegion::set_samples_per_unit (double spu)
{
- for (vector<GtkCanvasItem*>::iterator i = waves.begin(); i != waves.end(); ++i) {
- gtk_canvas_item_set ((*i), "samples_per_unit", spu, NULL);
+ for (vector<GnomeCanvasItem*>::iterator i = waves.begin(); i != waves.end(); ++i) {
+ gnome_canvas_item_set ((*i), "samples_per_unit", spu, NULL);
}
}
void
GhostRegion::set_duration (double units)
{
- gtk_canvas_item_set (base_rect, "x2", units, NULL);
+ gnome_canvas_item_set (base_rect, "x2", units, NULL);
}
void
GhostRegion::set_height ()
{
gdouble ht;
- vector<GtkCanvasItem*>::iterator i;
+ vector<GnomeCanvasItem*>::iterator i;
uint32_t n;
- gtk_canvas_item_set (base_rect, "y2", (double) trackview.height, NULL);
+ gnome_canvas_item_set (base_rect, "y2", (double) trackview.height, NULL);
ht = ((trackview.height) / (double) waves.size());
for (n = 0, i = waves.begin(); i != waves.end(); ++i, ++n) {
gdouble yoff = n * ht;
- gtk_canvas_item_set ((*i), "height", ht, "y", yoff, NULL);
+ gnome_canvas_item_set ((*i), "height", ht, "y", yoff, NULL);
}
}