From e30a1032d06d22770e91277542031908e1bfc2f5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 3 Sep 2019 14:26:01 +0200 Subject: [PATCH] Scroll Lua scripts, now that there can be many --- gtk2_ardour/lua_script_manager.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/lua_script_manager.cc b/gtk2_ardour/lua_script_manager.cc index d4ec67b4ce..3e0a6d23d1 100644 --- a/gtk2_ardour/lua_script_manager.cc +++ b/gtk2_ardour/lua_script_manager.cc @@ -86,8 +86,11 @@ LuaScriptManager::LuaScriptManager () doc->set_line_wrap(); f->add (*doc); + Gtk::ScrolledWindow *scroller = manage (new Gtk::ScrolledWindow()); + scroller->set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + scroller->add (_a_view); Gtk::VBox *vbox = manage (new VBox()); - vbox->pack_start (_a_view, false, false); + vbox->pack_start (*scroller, true, true); vbox->pack_end (*edit_box, false, false); vbox->pack_end (*f, false, false); vbox->show_all (); @@ -124,8 +127,11 @@ LuaScriptManager::LuaScriptManager () doc->set_line_wrap(); f->add (*doc); + scroller = manage (new Gtk::ScrolledWindow()); + scroller->set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + scroller->add (_c_view); vbox = manage (new VBox()); - vbox->pack_start (_c_view, false, false); + vbox->pack_start (*scroller, true, true); vbox->pack_end (*edit_box, false, false); vbox->pack_end (*f, false, false); vbox->show_all (); @@ -157,8 +163,11 @@ LuaScriptManager::LuaScriptManager () doc->set_line_wrap(); f->add (*doc); + scroller = manage (new Gtk::ScrolledWindow()); + scroller->set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + scroller->add (_s_view); vbox = manage (new VBox()); - vbox->pack_start (_s_view, false, false); + vbox->pack_start (*scroller, true, true); vbox->pack_end (*edit_box, false, false); vbox->pack_end (*f, false, false); vbox->show_all ();