13
0

Scroll Lua scripts, now that there can be many

This commit is contained in:
Robin Gareus 2019-09-03 14:26:01 +02:00
parent a3673809cf
commit e30a1032d0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -86,8 +86,11 @@ LuaScriptManager::LuaScriptManager ()
doc->set_line_wrap(); doc->set_line_wrap();
f->add (*doc); 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()); 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 (*edit_box, false, false);
vbox->pack_end (*f, false, false); vbox->pack_end (*f, false, false);
vbox->show_all (); vbox->show_all ();
@ -124,8 +127,11 @@ LuaScriptManager::LuaScriptManager ()
doc->set_line_wrap(); doc->set_line_wrap();
f->add (*doc); 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 = 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 (*edit_box, false, false);
vbox->pack_end (*f, false, false); vbox->pack_end (*f, false, false);
vbox->show_all (); vbox->show_all ();
@ -157,8 +163,11 @@ LuaScriptManager::LuaScriptManager ()
doc->set_line_wrap(); doc->set_line_wrap();
f->add (*doc); 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 = 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 (*edit_box, false, false);
vbox->pack_end (*f, false, false); vbox->pack_end (*f, false, false);
vbox->show_all (); vbox->show_all ();