diff options
author | Karsten Wiese <fzuuzf@googlemail.com> | 2005-11-27 22:35:04 +0000 |
---|---|---|
committer | Karsten Wiese <fzuuzf@googlemail.com> | 2005-11-27 22:35:04 +0000 |
commit | 1184029638aea5fe6a53175d226371ec9214eb17 (patch) | |
tree | b378e0c4b9b5283353c5f0f6ec63f186dfc91fa7 /gtk2_ardour/automation_line.cc | |
parent | 1f16781c75205b43ac193596d1449de343693a6f (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/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index f168a9f9f0..bf75edb461 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -129,7 +129,7 @@ ControlPoint::show() void ControlPoint::set_visible (bool yn) { - item->set_property ("draw", (gboolean) yn); + item->property_draw() = (gboolean) yn; } void @@ -145,10 +145,10 @@ ControlPoint::show_color (bool entered, bool hide_too) { if (entered) { if (selected) { - item->set_property ("outline_color_rgba", color_map[cEnteredControlPointSelected]); + item->property_outline_color_rgba() = color_map[cEnteredControlPointSelected]; set_visible(true); } else { - item->set_property ("outline_color_rgba", color_map[cEnteredControlPoint]); + item->property_outline_color_rgba() = color_map[cEnteredControlPoint]; if (hide_too) { set_visible(false); } @@ -156,10 +156,10 @@ ControlPoint::show_color (bool entered, bool hide_too) } else { if (selected) { - item->set_property ("outline_color_rgba", color_map[cControlPointSelected]); + item->property_outline_color_rgba() = color_map[cControlPointSelected]; set_visible(true); } else { - item->set_property ("outline_color_rgba", color_map[cControlPoint]); + item->property_outline_color_rgba() = color_map[cControlPoint]; if (hide_too) { set_visible(false); } @@ -174,9 +174,9 @@ ControlPoint::set_size (double sz) #if 0 if (_size > 6.0) { - item->set_property ("fill", (gboolean) TRUE); + item->property_fill() = (gboolean) TRUE; } else { - item->set_property ("fill", (gboolean) FALSE); + item->property_fill() = (gboolean) FALSE; } #endif @@ -205,10 +205,10 @@ ControlPoint::move_to (double x, double y, ShapeType shape) break; } - item->set_property ("x1", x1); - item->set_property ("x2", x2); - item->set_property ("y1", y - half_size); - item->set_property ("y2", y + half_size); + item->property_x1() = x1; + item->property_x2() = x2; + item->property_y1() = y - half_size; + item->property_y2() = y + half_size; _x = x; _y = y; @@ -232,11 +232,11 @@ AutomationLine::AutomationLine (string name, TimeAxisView& tv, ArdourCanvas::Gro _height = 0; group = new ArdourCanvas::Group (parent); - group->set_property ("x", 0.0); - group->set_property ("y", 0.0); + group->property_x() = 0.0; + group->property_y() = 0.0; line = new ArdourCanvas::Line (*group); - line->set_property ("width_pixels", (guint)1); + line->property_width_pixels() = (guint)1; line->signal_event().connect (mem_fun (*this, &AutomationLine::event_handler)); @@ -319,7 +319,7 @@ void AutomationLine::set_line_color (uint32_t color) { _line_color = color; - line->set_property ("fill_color_rgba", color); + line->property_fill_color_rgba() = color; } void |