summaryrefslogtreecommitdiffstats
path: root/src/extension/param/radiobutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/extension/param/radiobutton.cpp (renamed from src/extension/paramradiobutton.cpp)10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/extension/paramradiobutton.cpp b/src/extension/param/radiobutton.cpp
index 5fce66910..1ab526d19 100644
--- a/src/extension/paramradiobutton.cpp
+++ b/src/extension/param/radiobutton.cpp
@@ -28,12 +28,12 @@
#include <xml/node.h>
-#include "extension.h"
+#include <extension/extension.h>
#include "prefs-utils.h"
#include "document-private.h"
#include "sp-object.h"
-#include "paramradiobutton.h"
+#include "radiobutton.h"
/** \brief The root directory in the preferences database for extension
related parameters. */
@@ -59,8 +59,8 @@ public:
Glib::ustring * guitext;
};
-ParamRadioButton::ParamRadioButton (const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml) :
- Parameter(name, guitext, desc, scope, ext)
+ParamRadioButton::ParamRadioButton (const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, bool gui_hidden, const gchar * gui_tip, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml) :
+ Parameter(name, guitext, desc, scope, gui_hidden, gui_tip, ext)
{
choices = NULL;
_value = NULL;
@@ -226,6 +226,8 @@ ParamRadioButtonWdg::changed (void)
Gtk::Widget *
ParamRadioButton::get_widget (SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal)
{
+ if (_gui_hidden) return NULL;
+
Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4));
Gtk::VBox * vbox = Gtk::manage(new Gtk::VBox(false, 0));