diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/swatches.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/dialog/swatches.cpp b/src/ui/dialog/swatches.cpp index 092887541..68bafe549 100644 --- a/src/ui/dialog/swatches.cpp +++ b/src/ui/dialog/swatches.cpp @@ -636,6 +636,19 @@ SwatchesPanel::SwatchesPanel(gchar const* prefsPath) : } } + if (Glib::ustring(prefsPath) == "/dialogs/swatches") { + Gtk::Requisition sreq; +#if WITH_GTKMM_3_0 + Gtk::Requisition sreq_natural; + get_preferred_size(sreq_natural, sreq); +#else + sreq = size_request(); +#endif + int minHeight = 60; + if (sreq.height < minHeight) { + set_size_request(70, minHeight); + } + } _getContents()->pack_start(*_holder, Gtk::PACK_EXPAND_WIDGET); _setTargetFillable(_holder); |
