summaryrefslogtreecommitdiffstats
path: root/src/extension/extension.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-07-21 16:41:47 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:38 +0000
commit3c2c2921ae44841306da6ff357865481ad1fc674 (patch)
treefdc214683ca4e54231d84776c1ef1548fbff68d0 /src/extension/extension.cpp
parentRemove unused define ESCAPE_DOLLAR_COMMANDLINE (diff)
downloadinkscape-3c2c2921ae44841306da6ff357865481ad1fc674.tar.gz
inkscape-3c2c2921ae44841306da6ff357865481ad1fc674.zip
Remove unused and disabled "help" feature for extensions
Diffstat (limited to 'src/extension/extension.cpp')
-rw-r--r--src/extension/extension.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp
index bd593ea15..62d6f4590 100644
--- a/src/extension/extension.cpp
+++ b/src/extension/extension.cpp
@@ -51,8 +51,7 @@ std::ofstream Extension::error_file;
a name and an ID the module will be left in an errored state.
*/
Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp)
- : _help(nullptr)
- , silent(false)
+ : silent(false)
, _gui(true)
, execution_env(nullptr)
{
@@ -87,9 +86,6 @@ Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementat
if (!strcmp(chname, "name")) {
name = g_strdup (child_repr->firstChild()->content());
} /* name */
- if (!strcmp(chname, "help")) {
- _help = g_strdup (child_repr->firstChild()->content());
- } /* name */
if (!strcmp(chname, "param") || !strcmp(chname, "_param")) {
Parameter * param;
param = Parameter::make(child_repr, this);
@@ -789,29 +785,6 @@ void Extension::add_val(Glib::ustring labelstr, Glib::ustring valuestr, Gtk::Gri
}
Gtk::VBox *
-Extension::get_help_widget()
-{
- Gtk::VBox * retval = Gtk::manage(new Gtk::VBox());
- retval->set_border_width(4);
-
- if (_help == nullptr) {
- Gtk::Label * content = Gtk::manage(new Gtk::Label(_("Currently there is no help available for this Extension. Please look on the Inkscape website or ask on the mailing lists if you have questions regarding this extension.")));
- content->set_xalign(0);
- content->set_yalign(0);
- retval->pack_start(*content, true, true, 4);
- content->set_line_wrap(true);
- content->show();
- } else {
-
-
-
- }
-
- retval->show();
- return retval;
-}
-
-Gtk::VBox *
Extension::get_params_widget()
{
Gtk::VBox * retval = Gtk::manage(new Gtk::VBox());