diff options
| author | Ted Gould <ted@gould.cx> | 2006-01-30 05:10:24 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-01-30 05:10:24 +0000 |
| commit | e3b366cc587d78fbc0a440682cef94937ad2414c (patch) | |
| tree | 96cda4a56fa13532bbc062933ac57bdefd4324ae /src/extension/effect.cpp | |
| parent | again, try to resolve test box compile error (diff) | |
| download | inkscape-e3b366cc587d78fbc0a440682cef94937ad2414c.tar.gz inkscape-e3b366cc587d78fbc0a440682cef94937ad2414c.zip | |
r10781@tres: ted | 2006-01-26 23:18:34 -0800
Some modifications, getting basic menu merging working
(bzr r48)
Diffstat (limited to 'src/extension/effect.cpp')
| -rw-r--r-- | src/extension/effect.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index 5a43cd74c..43bd81830 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -30,9 +30,14 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation * 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()); @@ -137,7 +142,7 @@ Effect::find_effects_list (Inkscape::XML::Node * menustruct) 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(); |
