diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-07 21:46:00 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-07 21:46:00 +0000 |
| commit | cd7f6ac974dde831c8963d1c2afdb6f06cee5448 (patch) | |
| tree | f1cc05fbbcfd826190ed19aa2212f06697d0054e /src/ui/dialog/selectorsdialog.cpp | |
| parent | Extensions: Handle optiongroup options without value (diff) | |
| download | inkscape-cd7f6ac974dde831c8963d1c2afdb6f06cee5448.tar.gz inkscape-cd7f6ac974dde831c8963d1c2afdb6f06cee5448.zip | |
Add scrolled window to XMLDialog and CSS dialog to avoid auto growing when add new content
Diffstat (limited to 'src/ui/dialog/selectorsdialog.cpp')
| -rw-r--r-- | src/ui/dialog/selectorsdialog.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ui/dialog/selectorsdialog.cpp b/src/ui/dialog/selectorsdialog.cpp index a4b6c2c8b..c5e0e9f0b 100644 --- a/src/ui/dialog/selectorsdialog.cpp +++ b/src/ui/dialog/selectorsdialog.cpp @@ -374,8 +374,16 @@ void SelectorsDialog::_showWidgets() _paned.pack1(*_style_dialog, Gtk::SHRINK); _paned.pack2(_selectors_box, true, true); _paned.set_wide_handle(true); - _getContents()->pack_start(_paned, Gtk::PACK_EXPAND_WIDGET); - _getContents()->pack_start(_button_box, false, false, 0); + Gtk::Box *contents = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL)); + contents->pack_start(_paned, Gtk::PACK_EXPAND_WIDGET); + contents->pack_start(_button_box, false, false, 0); + contents->set_valign(Gtk::ALIGN_FILL); + contents->child_property_fill(_paned); + Gtk::ScrolledWindow *dialog_scroller = new Gtk::ScrolledWindow(); + dialog_scroller->set_policy( Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC ); + dialog_scroller->set_shadow_type(Gtk::SHADOW_IN); + dialog_scroller->add(*Gtk::manage(contents)); + _getContents()->pack_start(*dialog_scroller, Gtk::PACK_EXPAND_WIDGET); show_all(); int widthpos = _paned.property_max_position() - _paned.property_min_position(); int panedpos = prefs->getInt("/dialogs/selectors/panedpos", widthpos / 2); |
