diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-09-01 16:56:35 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-09-01 16:56:35 +0000 |
| commit | c6067b75a239a1322598f2d85ef0ce7cc59df0d4 (patch) | |
| tree | f91f4514e7fc563d01a0cbe04a863ab0a488acfd /src/extension/prefdialog/widget-box.cpp | |
| parent | Add appearance="colorbutton" to parameters of type color (diff) | |
| download | inkscape-c6067b75a239a1322598f2d85ef0ce7cc59df0d4.tar.gz inkscape-c6067b75a239a1322598f2d85ef0ce7cc59df0d4.zip | |
Add appearance="multiline" to parameters of type string
Renders a Gtk::TextView that automatically fills the available
space in the extension's preferences dialog and can be used
to accept longer multi-line strings.
Newlines in the string value will be passed as "\\n" to the
extension script (i.e. literal '\n' with the backspace escaped).
Diffstat (limited to 'src/extension/prefdialog/widget-box.cpp')
| -rw-r--r-- | src/extension/prefdialog/widget-box.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extension/prefdialog/widget-box.cpp b/src/extension/prefdialog/widget-box.cpp index 2c9d24f4a..9fd75e19a 100644 --- a/src/extension/prefdialog/widget-box.cpp +++ b/src/extension/prefdialog/widget-box.cpp @@ -96,7 +96,8 @@ Gtk::Widget *WidgetBox::get_widget(sigc::signal<void> *changeSignal) if (child_widget) { int indent = child->get_indent(); child_widget->set_margin_start(indent * GUI_INDENTATION); - box->pack_start(*child_widget, false, false, 0); + box->pack_start(*child_widget, false, true, 0); // fill=true does not have an effect here, but allows the + // child to choose to expand by setting hexpand/vexpand const char *tooltip = child->get_tooltip(); if (tooltip) { |
