From 3c2c2921ae44841306da6ff357865481ad1fc674 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sun, 21 Jul 2019 18:41:47 +0200 Subject: Remove unused and disabled "help" feature for extensions --- src/ui/dialog/extension-editor.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/ui/dialog/extension-editor.cpp') diff --git a/src/ui/dialog/extension-editor.cpp b/src/ui/dialog/extension-editor.cpp index e324afcc7..1852010a0 100644 --- a/src/ui/dialog/extension-editor.cpp +++ b/src/ui/dialog/extension-editor.cpp @@ -41,7 +41,6 @@ ExtensionEditor::ExtensionEditor() : UI::Widget::Panel("/dialogs/extensioneditor", SP_VERB_DIALOG_EXTENSIONEDITOR) { _notebook_info.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); - _notebook_help.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); _notebook_params.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); //Main HBox @@ -73,7 +72,6 @@ ExtensionEditor::ExtensionEditor() hbox_list_page->pack_start(*vbox_page, true, true, 0); Gtk::Notebook * notebook = Gtk::manage(new Gtk::Notebook()); notebook->append_page(_notebook_info, *Gtk::manage(new Gtk::Label(_("Information")))); - notebook->append_page(_notebook_help, *Gtk::manage(new Gtk::Label(_("Help")))); notebook->append_page(_notebook_params, *Gtk::manage(new Gtk::Label(_("Parameters")))); vbox_page->pack_start(*notebook, true, true, 0); @@ -140,19 +138,16 @@ void ExtensionEditor::on_pagelist_selection_changed() /* Clear the notbook pages */ _notebook_info.remove(); - _notebook_help.remove(); _notebook_params.remove(); Inkscape::Extension::Extension * ext = Inkscape::Extension::db.get(id.c_str()); /* Make sure we have all the widgets */ Gtk::Widget * info = nullptr; - Gtk::Widget * help = nullptr; Gtk::Widget * params = nullptr; if (ext != nullptr) { info = ext->get_info_widget(); - help = ext->get_help_widget(); params = ext->get_params_widget(); } @@ -160,9 +155,6 @@ void ExtensionEditor::on_pagelist_selection_changed() if (info != nullptr) { _notebook_info.add(*info); } - if (help != nullptr) { - _notebook_help.add(*help); - } if (params != nullptr) { _notebook_params.add(*params); } -- cgit v1.2.3