From 64f8f6c31a7105dc8f7e786a6022e2fb3bdda307 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 2 Jun 2022 22:32:26 +0200 Subject: [PATCH] Hide the border of the Lua dialog scrollbar frame This results in much cleaner look/feel, which was apparently the motivation for 817fccb3e5b. --- gtk2_ardour/luadialog.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk2_ardour/luadialog.cc b/gtk2_ardour/luadialog.cc index a35d84849e..bd43885c78 100644 --- a/gtk2_ardour/luadialog.cc +++ b/gtk2_ardour/luadialog.cc @@ -771,6 +771,14 @@ Dialog::Dialog (std::string const& title, luabridge::LuaRef lr) _scroller.add (*table); _scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_NEVER); + /* remove shadow from scrollWindow's viewport + * see http://www.mail-archive.com/gtkmm-list@gnome.org/msg03509.html + * and gtk2_ardour/meterbridge.cc + */ + Gtk::Viewport* viewport = (Gtk::Viewport*) _scroller.get_child(); + viewport->set_shadow_type(Gtk::SHADOW_NONE); + viewport->set_border_width(0); + _ad.get_vbox ()->pack_start (_scroller); int row = 0;