]> git.tokkee.org Git - inkscape.git/commitdiff

Code

r11769@tres: ted | 2006-05-06 09:09:59 -0700
authorgouldtj <gouldtj@users.sourceforge.net>
Sat, 6 May 2006 16:10:26 +0000 (16:10 +0000)
committergouldtj <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

index 694d8127902bc951c14944c43d20c762ffb1adf5..a4ba31678f8990e0d0adc6bcdbb4bf984f8446a9 100644 (file)
@@ -46,7 +46,6 @@ private:
 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 */
@@ -861,22 +860,11 @@ ParamString::string (void)
     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();