From 744b85679b6eee691ecf288d60c66e41b7f071b3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 4 May 2020 18:20:57 +0200 Subject: Tweak plugin-manager default window width #8079 --- gtk2_ardour/plugin_selector.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') 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); -- cgit v1.2.3