diff options
| author | Ted Gould <ted@gould.cx> | 2008-04-21 22:57:53 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2008-04-21 22:57:53 +0000 |
| commit | 6e412e5d2a83d5d4a835a4baa5a82514604408ac (patch) | |
| tree | 6035587de110b08f9f3bc2338323a970e6cdb045 /src/extension/effect.cpp | |
| parent | Show the name of the swatch that is currently under the pointer in the status... (diff) | |
| download | inkscape-6e412e5d2a83d5d4a835a4baa5a82514604408ac.tar.gz inkscape-6e412e5d2a83d5d4a835a4baa5a82514604408ac.zip | |
r19076@shi: ted | 2008-04-21 15:42:45 -0700
Core of having a real namespace for Inkscape extensions.
r19077@shi: ted | 2008-04-21 15:50:12 -0700
First layer of adding NS
r19078@shi: ted | 2008-04-21 15:56:03 -0700
Whew, doing the rest of them.
(bzr r5483)
Diffstat (limited to 'src/extension/effect.cpp')
| -rw-r--r-- | src/extension/effect.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index 2010e253a..615aeac7a 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -52,7 +52,7 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation * if (repr != NULL) { for (Inkscape::XML::Node *child = sp_repr_children(repr); child != NULL; child = child->next()) { - if (!strcmp(child->name(), "effect")) { + if (!strcmp(child->name(), INKSCAPE_EXTENSION_NS "effect")) { if (child->attribute("needs-document") && !strcmp(child->attribute("needs-document"), "false")) { no_doc = true; } @@ -60,20 +60,20 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation * no_live_preview = true; } for (Inkscape::XML::Node *effect_child = sp_repr_children(child); effect_child != NULL; effect_child = effect_child->next()) { - if (!strcmp(effect_child->name(), "effects-menu")) { + if (!strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "effects-menu")) { // printf("Found local effects menu in %s\n", this->get_name()); local_effects_menu = sp_repr_children(effect_child); if (effect_child->attribute("hidden") && !strcmp(effect_child->attribute("hidden"), "true")) { hidden = true; } } - if (!strcmp(effect_child->name(), "menu-name") || - !strcmp(effect_child->name(), "_menu-name")) { + if (!strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "menu-name") || + !strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "_menu-name")) { // printf("Found local effects menu in %s\n", this->get_name()); _verb.set_name(sp_repr_children(effect_child)->content()); } - if (!strcmp(effect_child->name(), "menu-tip") || - !strcmp(effect_child->name(), "_menu-tip")) { + if (!strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "menu-tip") || + !strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "_menu-tip")) { // printf("Found local effects menu in %s\n", this->get_name()); _verb.set_tip(sp_repr_children(effect_child)->content()); } |
