- text = new Gnome::Canvas::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 = new Text (*group);
+ 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));
+
+ mark->set_data ("marker", this);
+
+ if (handle_events) {
+ group->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_marker_event), mark, this));
+ }