From: Robin Gareus Date: Thu, 11 Jul 2013 14:42:26 +0000 (+0200) Subject: make config-window suitable for small[er] screens X-Git-Tag: 1.0.0~1301 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=90b4b1e724d2d673fce9e14706b9d15a23c0d334;p=ardour.git make config-window suitable for small[er] screens --- diff --git a/gtk2_ardour/configinfo.cc b/gtk2_ardour/configinfo.cc index 29c7e8fe63..67f13a1f5b 100644 --- a/gtk2_ardour/configinfo.cc +++ b/gtk2_ardour/configinfo.cc @@ -31,9 +31,15 @@ ConfigInfoDialog::ConfigInfoDialog () text.get_buffer()->set_text (std::string (ARDOUR::ardour_config_info)); text.set_wrap_mode (Gtk::WRAP_WORD); text.show (); - text.set_size_request (300, 800); - get_vbox()->pack_start (text, true, true); + scroller.set_shadow_type(Gtk::SHADOW_NONE); + scroller.set_border_width(0); + scroller.add (text); + scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + scroller.show(); + + get_vbox()->pack_start (scroller, true, true); + set_size_request (400, 600); add_button (Gtk::Stock::CLOSE, Gtk::RESPONSE_ACCEPT); } diff --git a/gtk2_ardour/configinfo.h b/gtk2_ardour/configinfo.h index 84f90b20a2..209392a8f1 100644 --- a/gtk2_ardour/configinfo.h +++ b/gtk2_ardour/configinfo.h @@ -18,6 +18,7 @@ */ #include +#include #include "ardour_dialog.h" @@ -28,4 +29,5 @@ class ConfigInfoDialog : public ArdourDialog private: Gtk::TextView text; + Gtk::ScrolledWindow scroller; };