summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b0da660)
raw | patch | inline | side by side (parent: b0da660)
author | gouldtj <gouldtj@users.sourceforge.net> | |
Mon, 30 Jan 2006 05:10:24 +0000 (05:10 +0000) | ||
committer | gouldtj <gouldtj@users.sourceforge.net> | |
Mon, 30 Jan 2006 05:10:24 +0000 (05:10 +0000) |
Some modifications, getting basic menu merging working
src/extension/effect.cpp | patch | blob | history |
index 5a43cd74c084cbfbbac70e4ec9ee898163747c42..43bd81830b4e549ff4563eeccb7ec048ee45153d 100644 (file)
--- a/src/extension/effect.cpp
+++ b/src/extension/effect.cpp
find_effects_list(inkscape_get_menus(INKSCAPE));
if (_effects_list != NULL) {
+ unsigned start_pos = _effects_list->position();
+
_menu_node = sp_repr_new("verb");
_menu_node->setAttribute("verb-id", this->get_id(), false);
_effects_list->parent()->appendChild(_menu_node);
+
+ _menu_node->setPosition(start_pos + 1);
+
Inkscape::GC::release(_menu_node);
} /*else {
printf("Effect %s not added\n", get_name());
child != NULL;
child = child->next()) {
if (!strcmp(child->name(), EFFECTS_LIST)) {
- _effects_list = menustruct;
+ _effects_list = child;
return true;
}
Inkscape::XML::Node * firstchild = child->firstChild();