summaryrefslogtreecommitdiffstats
path: root/src/extension/input.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-04-21 22:57:53 +0000
committergouldtj <gouldtj@users.sourceforge.net>2008-04-21 22:57:53 +0000
commit6e412e5d2a83d5d4a835a4baa5a82514604408ac (patch)
tree6035587de110b08f9f3bc2338323a970e6cdb045 /src/extension/input.cpp
parentShow the name of the swatch that is currently under the pointer in the status... (diff)
downloadinkscape-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/input.cpp')
-rw-r--r--src/extension/input.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/extension/input.cpp b/src/extension/input.cpp
index cdc4f32f4..689c1286f 100644
--- a/src/extension/input.cpp
+++ b/src/extension/input.cpp
@@ -52,10 +52,13 @@ Input::Input (Inkscape::XML::Node * in_repr, Implementation::Implementation * in
child_repr = sp_repr_children(repr);
while (child_repr != NULL) {
- if (!strcmp(child_repr->name(), "input")) {
+ if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "input")) {
child_repr = sp_repr_children(child_repr);
while (child_repr != NULL) {
char const * chname = child_repr->name();
+ if (!strncmp(chname, INKSCAPE_EXTENSION_NS_NC, strlen(INKSCAPE_EXTENSION_NS_NC))) {
+ chname += strlen(INKSCAPE_EXTENSION_NS);
+ }
if (chname[0] == '_') /* Allow _ for translation of tags */
chname++;
if (!strcmp(chname, "extension")) {