make config-window suitable for small[er] screens
authorRobin Gareus <robin@gareus.org>
Thu, 11 Jul 2013 14:42:26 +0000 (16:42 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 11 Jul 2013 18:39:24 +0000 (20:39 +0200)
gtk2_ardour/configinfo.cc
gtk2_ardour/configinfo.h

index 29c7e8fe63efc60fc60401b70add4dd276897ece..67f13a1f5ba6612058682730e08ff2a9fe4f1617 100644 (file)
@@ -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);
 }
index 84f90b20a2cc7162b52a17257cb06f360505912f..209392a8f14c4a2f056c1875fe901fc4a36f6401 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <gtkmm/textview.h>
+#include <gtkmm/scrolledwindow.h>
 
 #include "ardour_dialog.h"
 
@@ -28,4 +29,5 @@ class ConfigInfoDialog : public ArdourDialog
 
   private:
        Gtk::TextView text;
+       Gtk::ScrolledWindow scroller;
 };