diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-31 16:33:26 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-09-01 12:25:53 +0000 |
| commit | 11ed8504c3c821297d906acf4a42e83f558c305d (patch) | |
| tree | 95b63c910b615b4720c2162064ae11775b330c7d /src/extension/prefdialog/parameter-int.cpp | |
| parent | Add new parameter of type "path" (diff) | |
| download | inkscape-11ed8504c3c821297d906acf4a42e83f558c305d.tar.gz inkscape-11ed8504c3c821297d906acf4a42e83f558c305d.zip | |
Add appearance="colorbutton" to parameters of type color
Renders a simple Gtk::ColorButton with label instead of the full
ColorNotebook which is too large for many applications.
Should likely be re-implemented bringing up a new Dialog that wraps
an Inkscape::UI::Widget::ColorNotebook eventually, instead of
relying on the Gtk::ColorButton's picker implementation which is
inconsistent to existing pickers.
Diffstat (limited to 'src/extension/prefdialog/parameter-int.cpp')
| -rw-r--r-- | src/extension/prefdialog/parameter-int.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/extension/prefdialog/parameter-int.cpp b/src/extension/prefdialog/parameter-int.cpp index 1d768ca00..e18e1bddc 100644 --- a/src/extension/prefdialog/parameter-int.cpp +++ b/src/extension/prefdialog/parameter-int.cpp @@ -152,13 +152,12 @@ ParamInt::get_widget(sigc::signal<void> *changeSignal) scale->set_size_request(400, -1); scale->show(); hbox->pack_start(*scale, true, true); - } - else if (_mode == DEFAULT) { + } else if (_mode == DEFAULT) { Gtk::Label *label = Gtk::manage(new Gtk::Label(_text, Gtk::ALIGN_START)); label->show(); hbox->pack_start(*label, true, true); - auto spin = Gtk::manage(new Inkscape::UI::Widget::SpinButton(fadjust, 1.0, 0)); + auto spin = Gtk::manage(new Inkscape::UI::Widget::SpinButton(fadjust, 1.0, 0)); spin->show(); hbox->pack_start(*spin, false, false); } |
