patch from colinf to fix the width of generic plugin editors
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 Jan 2012 20:48:47 +0000 (20:48 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 Jan 2012 20:48:47 +0000 (20:48 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11401 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/generic_pluginui.cc
gtk2_ardour/plugin_ui.cc

index 08ad93285af27293fbc29937183cc1a434d937e7..f7110740eeeb0e6b30851ab88b995a971fe2bdc1 100644 (file)
@@ -113,7 +113,7 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol
        main_contents.pack_start (*constraint_hbox, false, false);
 
        if (is_scrollable ) {
-               scroller.set_policy (Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
+               scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
                scroller.set_name ("PluginEditor");
                scroller_view.set_name("PluginEditor");
                scroller_view.add (hpacker);
index 9774d3dc4632625caf65a334546158a1533051ac..d3827489183b1c37df3203234d84e5b74f5c382f 100644 (file)
@@ -156,11 +156,6 @@ PluginUIWindow::PluginUIWindow (
 
        if (scrollable) {
                if (h > 600) h = 600;
-               if (w > 600) w = 600;
-
-               if (w < 0) {
-                       w = 450;
-               }
        }
 
        set_default_size (w, h);