summaryrefslogtreecommitdiffstats
path: root/src/extension/effect.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2006-03-29 05:38:26 +0000
committergouldtj <gouldtj@users.sourceforge.net>2006-03-29 05:38:26 +0000
commit10fb83702852f5dd26ba235e33dbc1cd1b35057b (patch)
treef9222d1ef9bf2dc2b620f4a4a101749a6f9052c9 /src/extension/effect.cpp
parentr10919@tres: ted | 2006-02-13 09:37:13 -0800 (diff)
downloadinkscape-10fb83702852f5dd26ba235e33dbc1cd1b35057b.tar.gz
inkscape-10fb83702852f5dd26ba235e33dbc1cd1b35057b.zip
r10920@tres: ted | 2006-02-13 09:38:31 -0800
Adding in menu-name and menu-tip XML file options to make it so that those can be set in the INX file. (bzr r333)
Diffstat (limited to 'src/extension/effect.cpp')
-rw-r--r--src/extension/effect.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp
index f88833ec4..8c7fad2c9 100644
--- a/src/extension/effect.cpp
+++ b/src/extension/effect.cpp
@@ -42,6 +42,14 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation *
// printf("Found local effects menu in %s\n", this->get_name());
local_effects_menu = sp_repr_children(child_repr);
}
+ if (!strcmp(child_repr->name(), "menu-name")) {
+ // printf("Found local effects menu in %s\n", this->get_name());
+ _verb.set_name(sp_repr_children(child_repr)->content());
+ }
+ if (!strcmp(child_repr->name(), "menu-tip")) {
+ // printf("Found local effects menu in %s\n", this->get_name());
+ _verb.set_tip(sp_repr_children(child_repr)->content());
+ }
} // children of "effect"
break; // there can only be one effect
} // find "effect"