summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64e5ad4)
raw | patch | inline | side by side (parent: 64e5ad4)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 13 Nov 2007 14:02:49 +0000 (14:02 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 13 Nov 2007 14:02:49 +0000 (14:02 +0000) |
share/extensions/perfectboundcover.inx | patch | blob | history | |
src/extension/paramenum.cpp | patch | blob | history | |
src/extension/paramradiobutton.cpp | patch | blob | history |
index 62369adf15198fd2beb0087e940b27f55acc501c..422c329644b48ab77c855b88a28b1bee6264dbf2 100644 (file)
<param name="removeguides" type="boolean" _gui-text="Remove existing guides">true</param>
<_param name="paper" type="description">Interior Pages</_param>
<param name="paperthicknessmeasurement" _gui-text="Paper Thickness Measurement" type="optiongroup">
- <_option>Pages Per Inch (PPI)</_option>
- <_option>Caliper (inches)</_option>
- <_option>Points</_option>
- <_option>Bond Weight #</_option>
- <_option>Specify Width</_option>
+ <option>Pages Per Inch (PPI)</option>
+ <option>Caliper (inches)</option>
+ <option>Points</option>
+ <option>Bond Weight #</option>
+ <option>Specify Width</option>
</param>
<param precision="4" name="paperthickness" type="float" min="0.000" max="1000.000" _gui-text="Value">0</param>
<_param name="cover" type="description">Cover</_param>
<param name="coverthicknessmeasurement" _gui-text="Cover Thickness Measurement" type="optiongroup">
- <_option>Pages Per Inch (PPI)</_option>
- <_option>Caliper (inches)</_option>
- <_option>Points</_option>
- <_option>Bond Weight #</_option>
- <_option>Specify Width</_option>
+ <option>Pages Per Inch (PPI)</option>
+ <option>Caliper (inches)</option>
+ <option>Points</option>
+ <option>Bond Weight #</option>
+ <option>Specify Width</option>
</param>
<param precision="4" name="coverthickness" type="float" min="0.000" max="1000.000" _gui-text="Value">0</param>
<param precision="3" name="bleed" type="float" min="0.000" max="1.000" _gui-text="Bleed (in)">.25</param>
index 8d779d1c228c0905db1637c3bfcffe551ef51346..1b1b83f6d987f53393cc6d180856926845f36870 100644 (file)
@@ -77,10 +77,16 @@ ParamComboBox::ParamComboBox (const gchar * name, const gchar * guitext, const g
const char * contents = sp_repr_children(child_repr)->content();
if (contents != NULL)
newguitext = new Glib::ustring( _(contents) );
+ else
+ continue;
+
const char * val = child_repr->attribute("value");
if (val != NULL)
newvalue = new Glib::ustring(val);
- if ( (newguitext) && (newvalue) ) {
+ else
+ newvalue = new Glib::ustring(contents);
+
+ if ( (newguitext) && (newvalue) ) { // logical error if this is not true here
choices = g_slist_append( choices, new enumentry(newvalue, newguitext) );
}
}
index ad18ce79f83eb64ce9880fe58fe68160f932fca2..1624bf5873a8ce3576ac2726253fe937ad6d84b5 100644 (file)
@@ -71,12 +71,12 @@ 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, "option") || !strcmp(chname, "_option")) {
+ if (!strcmp(chname, "option")) {
Glib::ustring * newguitext = NULL;
Glib::ustring * newvalue = NULL;
const char * contents = sp_repr_children(child_repr)->content();
if (contents != NULL)
- newguitext = new Glib::ustring(contents);
+ newguitext = new Glib::ustring( _(contents) );
else
continue;
if (val != NULL)
newvalue = new Glib::ustring(val);
else
- newvalue = new Glib::ustring(*newguitext);
+ newvalue = new Glib::ustring(contents);
if ( (newguitext) && (newvalue) ) { // logical error if this is not true here
choices = g_slist_append( choices, new optionentry(newvalue, newguitext) );