summaryrefslogtreecommitdiffstats
path: root/src/ui
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/ui
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/ui')
-rw-r--r--src/ui/dialog/extension-editor.cpp8
-rw-r--r--src/ui/dialog/extension-editor.h8
2 files changed, 2 insertions, 14 deletions
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);
}
diff --git a/src/ui/dialog/extension-editor.h b/src/ui/dialog/extension-editor.h
index e9c45e209..403ee1fb5 100644
--- a/src/ui/dialog/extension-editor.h
+++ b/src/ui/dialog/extension-editor.h
@@ -33,8 +33,6 @@ public:
static ExtensionEditor &getInstance() { return *new ExtensionEditor(); }
- static void show_help (gchar const * extension_id);
-
protected:
/** \brief The view of the list of extensions on the left of the dialog */
Gtk::TreeView _page_list;
@@ -42,8 +40,6 @@ protected:
Glib::RefPtr<Gtk::TreeStore> _page_list_model;
/** \brief The notebook page that contains information */
Gtk::ScrolledWindow _notebook_info;
- /** \brief The notebook page that contains help info */
- Gtk::ScrolledWindow _notebook_help;
/** \brief The notebook page that holds all the parameters */
Gtk::ScrolledWindow _notebook_params;
@@ -68,8 +64,8 @@ private:
an item in the extension list */
Glib::ustring _selection_search;
- ExtensionEditor(ExtensionEditor const &d);
- ExtensionEditor& operator=(ExtensionEditor const &d);
+ ExtensionEditor(ExtensionEditor const &d) = delete;
+ ExtensionEditor& operator=(ExtensionEditor const &d) = delete;
void on_pagelist_selection_changed();
static void dbfunc (Inkscape::Extension::Extension * in_plug, gpointer in_data);