diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-01-01 22:09:22 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-01-01 22:09:22 +0000 |
| commit | 72f43c86d2f36f801785bfa4a393956a5c9f45b5 (patch) | |
| tree | 98256c32d5b932e31c76b5e8a11a9fc5545159a6 /src/extension/param/bool.cpp | |
| parent | Fixes crashes with knoth in bend and pattern along path (diff) | |
| parent | Merge branch 'checkboxlabel' of gitlab.com:darktrojan/inkscape (diff) | |
| download | inkscape-72f43c86d2f36f801785bfa4a393956a5c9f45b5.tar.gz inkscape-72f43c86d2f36f801785bfa4a393956a5c9f45b5.zip | |
Merge branch 'master' into fixBendAndPatternAlongPathCrashesWithKnots
Diffstat (limited to 'src/extension/param/bool.cpp')
| -rw-r--r-- | src/extension/param/bool.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/extension/param/bool.cpp b/src/extension/param/bool.cpp index 2c7e32480..80bc89138 100644 --- a/src/extension/param/bool.cpp +++ b/src/extension/param/bool.cpp @@ -83,8 +83,8 @@ public: * * @param param Which parameter to adjust on changing the check button */ - ParamBoolCheckButton (ParamBool * param, SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) : - Gtk::CheckButton(), _pref(param), _doc(doc), _node(node), _changeSignal(changeSignal) { + ParamBoolCheckButton (ParamBool * param, gchar * label, SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) : + Gtk::CheckButton(label), _pref(param), _doc(doc), _node(node), _changeSignal(changeSignal) { this->set_active(_pref->get(NULL, NULL) /**\todo fix */); this->signal_toggled().connect(sigc::mem_fun(this, &ParamBoolCheckButton::on_toggle)); return; @@ -133,11 +133,7 @@ Gtk::Widget *ParamBool::get_widget(SPDocument * doc, Inkscape::XML::Node * node, auto hbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, Parameter::GUI_PARAM_WIDGETS_SPACING)); hbox->set_homogeneous(false); - Gtk::Label * label = Gtk::manage(new Gtk::Label(_text, Gtk::ALIGN_START)); - label->show(); - hbox->pack_end(*label, true, true); - - ParamBoolCheckButton * checkbox = Gtk::manage(new ParamBoolCheckButton(this, doc, node, changeSignal)); + ParamBoolCheckButton * checkbox = Gtk::manage(new ParamBoolCheckButton(this, _text, doc, node, changeSignal)); checkbox->show(); hbox->pack_start(*checkbox, false, false); |
