diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2006-11-25 22:16:25 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2006-11-25 22:16:25 +0000 |
| commit | 40ee63dab3c8c87ddba969decaa31e5b4393db1b (patch) | |
| tree | d45208c95d9a64212a4a1156225d936345b7d2e9 | |
| parent | added user unit conversion to eqtexsvg extension (diff) | |
| download | inkscape-40ee63dab3c8c87ddba969decaa31e5b4393db1b.tar.gz inkscape-40ee63dab3c8c87ddba969decaa31e5b4393db1b.zip | |
rename INX name for radiobuttons: <item> => <option>
removed debug message
(bzr r2038)
| -rw-r--r-- | share/extensions/radiobutton_example.inx | 12 | ||||
| -rw-r--r-- | src/extension/paramradiobutton.cpp | 3 |
2 files changed, 7 insertions, 8 deletions
diff --git a/share/extensions/radiobutton_example.inx b/share/extensions/radiobutton_example.inx index 9331f6da3..0195ed211 100644 --- a/share/extensions/radiobutton_example.inx +++ b/share/extensions/radiobutton_example.inx @@ -2,14 +2,14 @@ <_name>RadioButton example</_name> <id>org.inkscape.effect.radiobuttontest</id> <param name="radio1" type="optiongroup" _gui-text="Select option: "> - <item>string 1</item> - <item>string 2</item> - <item>test 3!</item> + <option>string 1</option> + <option>string 2</option> + <option>test 3!</option> </param> <param name="radio2" type="optiongroup" _gui-text="Select second option: "> - <item>string1</item> - <item>string2</item> - <item>test3!</item> + <option>string1</option> + <option>string2</option> + <option>test3!</option> </param> <effect> <object-type>all</object-type> diff --git a/src/extension/paramradiobutton.cpp b/src/extension/paramradiobutton.cpp index 80ec50521..b1eef0e5d 100644 --- a/src/extension/paramradiobutton.cpp +++ b/src/extension/paramradiobutton.cpp @@ -54,7 +54,7 @@ ParamRadioButton::ParamRadioButton (const gchar * name, const gchar * guitext, c Inkscape::XML::Node *child_repr = sp_repr_children(xml);
while (child_repr != NULL) {
char const * chname = child_repr->name();
- if (!strcmp(chname, "item")) {
+ if (!strcmp(chname, "option")) {
Glib::ustring * newitem = NULL;
const char * contents = sp_repr_children(child_repr)->content();
if (contents != NULL)
@@ -178,7 +178,6 @@ ParamRadioButtonWdg::changed (void) {
if (this->get_active()) {
Glib::ustring data = this->get_label();
- g_message(data.c_str());
_pref->set(data.c_str(), _doc, _node);
}
}
|
