summaryrefslogtreecommitdiffstats
path: root/src/extension/param/notebook.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/param/notebook.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/param/notebook.cpp')
-rw-r--r--src/extension/param/notebook.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/extension/param/notebook.cpp b/src/extension/param/notebook.cpp
index 5c4f96759..1a2623fbf 100644
--- a/src/extension/param/notebook.cpp
+++ b/src/extension/param/notebook.cpp
@@ -71,6 +71,9 @@ ParamNotebookPage::ParamNotebookPage (const gchar * name, const gchar * guitext,
Inkscape::XML::Node *child_repr = sp_repr_children(xml);
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, "param") || !strcmp(chname, "_param")) {
@@ -237,6 +240,9 @@ ParamNotebook::ParamNotebook (const gchar * name, const gchar * guitext, const g
Inkscape::XML::Node *child_repr = sp_repr_children(xml);
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, "page")) {