summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.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/editor_tempodisplay.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/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index c343611967..217d99438f 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -37,7 +37,7 @@
#include "editor.h"
#include "marker.h"
-#include "canvas-simpleline.h"
+#include "simpleline.h"
#include "tempo_dialog.h"
#include "rgb_macros.h"
#include "gui_thread.h"
@@ -126,13 +126,13 @@ Editor::hide_measures ()
used_measure_lines.clear ();
}
-ArdourCanvas::Line *
+ArdourCanvas::SimpleLine *
Editor::get_time_line ()
{
- ArdourCanvas::Line *line;
+ ArdourCanvas::SimpleLine *line;
if (free_measure_lines.empty()) {
- line = new ArdourCanvas::Line (*time_line_group);
+ line = new ArdourCanvas::SimpleLine (*time_line_group);
// cerr << "measure line @ " << line << endl;
used_measure_lines.push_back (line);
} else {
@@ -153,7 +153,7 @@ Editor::draw_measures ()
TempoMap::BBTPointList::iterator i;
TempoMap::BBTPointList *all_bbt_points;
- ArdourCanvas::Line *line;
+ ArdourCanvas::SimpleLine *line;
gdouble xpos, last_xpos;
uint32_t cnt;
uint32_t color;
@@ -215,10 +215,10 @@ Editor::draw_measures ()
if (cnt == 0 || xpos - last_xpos > 4.0) {
line = get_time_line ();
- line->set_property ("x1", xpos);
- line->set_property ("x2", xpos);
- line->set_property ("y2", (gdouble) canvas_height);
- line->set_property ("color_rgba", color);
+ line->property_x1() = xpos;
+ line->property_x2() = xpos;
+ line->property_y2() = (gdouble) canvas_height;
+ line->property_color_rgba() = color;
line->raise_to_top();
line->show();
last_xpos = xpos;