- points->push_back(Gnome::Art::Point(-9383839.0, 0.0));
- points->push_back(Gnome::Art::Point(1.0, 0.0));
- Gnome::Canvas::Group *group = editor.cursor_group;
-
- // cerr << "set cursor points, nc = " << points->num_points << endl;
-
- canvas_item = new Gnome::Canvas::Line (*group, *points);
- canvas_item->set_property ("fill_color", color.c_str());
- canvas_item->set_property ("width_pixels", 1);
- canvas_item->set_property ("first_arrowhead", (gboolean) TRUE);
- canvas_item->set_property ("last_arrowhead", (gboolean) TRUE);
- canvas_item->set_property ("arrow_shape_a", 11.0);
- canvas_item->set_property ("arrow_shape_b", 0.0);
- canvas_item->set_property ("arrow_shape_c", 9.0);
-
- // cerr << "cursor line @ " << canvas_item << endl;
+ canvas_item.property_points() = points;
+ canvas_item.property_fill_color() = color; //.c_str());
+ canvas_item.property_width_pixels() = 1;
+ canvas_item.property_first_arrowhead() = TRUE;
+ canvas_item.property_last_arrowhead() = TRUE;
+ canvas_item.property_arrow_shape_a() = 11.0;
+ canvas_item.property_arrow_shape_b() = 0.0;
+ canvas_item.property_arrow_shape_c() = 9.0;