Code

rename INX name for radiobuttons: <item> => <option>
authorjohanengelen <johanengelen@users.sourceforge.net>
Sat, 25 Nov 2006 22:16:25 +0000 (22:16 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sat, 25 Nov 2006 22:16:25 +0000 (22:16 +0000)
removed debug message

share/extensions/radiobutton_example.inx
src/extension/paramradiobutton.cpp

index 9331f6da3b856c448e92a834ff9bac2fef38fc14..0195ed211d268d7c3bd93705bdcdaf19131b190f 100644 (file)
@@ -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>
index 80ec5052100a4e39bd42713bff9d844b46b837b6..b1eef0e5d7fe2afbf29fbbb5aa0aa562d3e091a2 100644 (file)
@@ -54,7 +54,7 @@ ParamRadioButton::ParamRadioButton (const gchar * name, const gchar * guitext, c
         Inkscape::XML::Node *child_repr = sp_repr_children(xml);\r
         while (child_repr != NULL) {\r
             char const * chname = child_repr->name();\r
-            if (!strcmp(chname, "item")) {\r
+            if (!strcmp(chname, "option")) {\r
                 Glib::ustring * newitem = NULL;\r
                 const char * contents = sp_repr_children(child_repr)->content();\r
                 if (contents != NULL)\r
@@ -178,7 +178,6 @@ ParamRadioButtonWdg::changed (void)
 {\r
     if (this->get_active()) {\r
         Glib::ustring data = this->get_label();\r
-        g_message(data.c_str());\r
         _pref->set(data.c_str(), _doc, _node);\r
     }\r
 }\r