summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-05-04 18:20:57 +0200
committerRobin Gareus <robin@gareus.org>2020-05-04 18:20:57 +0200
commit744b85679b6eee691ecf288d60c66e41b7f071b3 (patch)
treec9821397ab19e5ea65492d580a6fba2ed12e42e9 /gtk2_ardour
parentacb8f9eb28e487daaed22b827e48c31fb0df2465 (diff)
Tweak plugin-manager default window width #8079
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/plugin_selector.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/plugin_selector.cc b/gtk2_ardour/plugin_selector.cc
index 1afe46d182..181d703a43 100644
--- a/gtk2_ardour/plugin_selector.cc
+++ b/gtk2_ardour/plugin_selector.cc
@@ -311,10 +311,12 @@ PluginSelector::PluginSelector (PluginManager& mgr)
VBox* to_be_inserted_vbox = manage (new VBox);
to_be_inserted_vbox->pack_start (ascroller);
to_be_inserted_vbox->pack_start (*add_remove, false, false);
- to_be_inserted_vbox->set_size_request (200, -1);
+ int min_width = std::max (200.f, rintf(200.f * UIConfiguration::instance().get_ui_scale()));
int min_height = std::max (600.f, rintf(600.f * UIConfiguration::instance().get_ui_scale()));
+ to_be_inserted_vbox->set_size_request (min_width, -1);
+
Gtk::Table* table = manage(new Gtk::Table(3, 3));
table->set_size_request(-1, min_height);