summaryrefslogtreecommitdiff
path: root/gtk2_ardour/marker.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/marker.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/marker.cc')
-rw-r--r--gtk2_ardour/marker.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc
index e5d792988b..a15697eb20 100644
--- a/gtk2_ardour/marker.cc
+++ b/gtk2_ardour/marker.cc
@@ -241,23 +241,23 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con
unit_position -= shift;
group = &parent;
- group->set_property ("x", unit_position);
- group->set_property ("y", 1.0);
+ group->property_x() = unit_position;
+ group->property_y() = 1.0;
// cerr << "set mark al points, nc = " << points->num_points << endl;
mark = new Polygon (*group);
- mark->set_property ("points", points);
- mark->set_property ("fill_color_rgba", rgba);
- mark->set_property ("outline_color", Gdk::Color ("black"));
+ mark->property_points() = *points;
+ mark->property_fill_color_rgba() = rgba;
+ mark->property_outline_color() = "black";
Pango::FontDescription font = get_font_for_style (N_("MarkerText"));
text = new Text (*group);
- text->set_property ("text", annotation.c_str());
- text->set_property ("x", label_offset);
- text->set_property ("y", 0.0);
- text->set_property ("fontdesc", font);
- text->set_property ("anchor", Gtk::ANCHOR_NW);
- text->set_property ("fill_color", Gdk::Color ("black"));
+ text->property_text() = annotation.c_str();
+ text->property_x() = label_offset;
+ text->property_y() = 0.0;
+ text->property_font_desc() = font;
+ text->property_anchor() = Gtk::ANCHOR_NW;
+ text->property_fill_color() = "black";
editor.ZoomChanged.connect (mem_fun (*this, &Marker::reposition));
@@ -286,7 +286,7 @@ Marker::the_item() const
void
Marker::set_name (const string& name)
{
- text->set_property ("text", name.c_str());
+ text->property_text() = name.c_str();
}
void
@@ -320,7 +320,7 @@ Marker::hide ()
void
Marker::set_color_rgba (uint32_t color)
{
- mark->set_property ("fill_color_rgba", color);
+ mark->property_fill_color_rgba() = color;
}
/***********************************************************************/