diff options
| author | Ted Gould <ted@gould.cx> | 2006-03-29 05:38:37 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-03-29 05:38:37 +0000 |
| commit | 6823dea398d034bce1a5ad849b08a2fe77737a3a (patch) | |
| tree | 50fc794019b7215bf2b9edce7e53317e55cb4548 /src/extension/extension.cpp | |
| parent | r10920@tres: ted | 2006-02-13 09:38:31 -0800 (diff) | |
| download | inkscape-6823dea398d034bce1a5ad849b08a2fe77737a3a.tar.gz inkscape-6823dea398d034bce1a5ad849b08a2fe77737a3a.zip | |
r10921@tres: ted | 2006-02-13 09:40:25 -0800
Adding in support for a <help> tag in the base extension part of the INX
file. Currently that just gets passed to the prefdialog, but it will be
used in a little while.
(bzr r334)
Diffstat (limited to 'src/extension/extension.cpp')
| -rw-r--r-- | src/extension/extension.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp index 42b220576..62f590be3 100644 --- a/src/extension/extension.cpp +++ b/src/extension/extension.cpp @@ -53,7 +53,7 @@ Parameter * param_shared (const gchar * name, GSList * list); not related to the module directly. If the Repr does not include a name and an ID the module will be left in an errored state. */ -Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp) +Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp) : _help(NULL) { repr = in_repr; Inkscape::GC::anchor(in_repr); @@ -84,6 +84,9 @@ Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementat if (!strcmp(chname, "name")) { name = g_strdup (sp_repr_children(child_repr)->content()); } /* name */ + if (!strcmp(chname, "help")) { + _help = g_strdup (sp_repr_children(child_repr)->content()); + } /* name */ if (!strcmp(chname, "param")) { Parameter * param; param = Parameter::make(child_repr, this); |
