summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 755ee1d)
raw | patch | inline | side by side (parent: 755ee1d)
| author | gouldtj <gouldtj@users.sourceforge.net> | |
| Sat, 6 May 2006 16:10:26 +0000 (16:10 +0000) | ||
| committer | gouldtj <gouldtj@users.sourceforge.net> | |
| Sat, 6 May 2006 16:10:26 +0000 (16:10 +0000) |
For some reason SVK lost this change...
| src/extension/parameter.cpp | patch | blob | history |
index 694d8127902bc951c14944c43d20c762ffb1adf5..a4ba31678f8990e0d0adc6bcdbb4bf984f8446a9 100644 (file)
public:
ParamDescription(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node);
- Glib::ustring * string (void);
};
/** \brief A boolean parameter */
return mystring;
}
-/** \brief Return the value as a string */
-Glib::ustring *
-ParamDescription::string (void)
-{
- Glib::ustring * mystring = new Glib::ustring("");
- *mystring += "\"";
- *mystring += _value;
- *mystring += "\"";
- return mystring;
-}
-
/** \brief Create a label for the description */
Gtk::Widget *
ParamDescription::get_widget (SPDocument * doc, Inkscape::XML::Node * node)
{
- Gtk::Label * label = Gtk::manage(new Gtk::Label(_value));
+ Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_value)));
label->set_line_wrap();
label->show();