fix a SNAFU that occured when switch from ArdourDialog to ArdourWindow that removed...
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 25 Jul 2012 00:32:59 +0000 (00:32 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 25 Jul 2012 00:32:59 +0000 (00:32 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13079 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/keyeditor.cc
gtk2_ardour/keyeditor.h

index 72207ea27f6536a85049380ffa284423a60b67a9..07042a1cdf031296c26d2678b948e9c2492c6ba2 100644 (file)
@@ -76,7 +76,10 @@ KeyEditor::KeyEditor ()
        scroller.add (view);
        scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
 
-       add (scroller);
+       add (vpacker);
+
+       vpacker.set_spacing (6);
+       vpacker.pack_start (scroller);
 
        if (!ARDOUR::Profile->get_sae()) {
 
@@ -87,14 +90,17 @@ KeyEditor::KeyEditor ()
                unbind_box.pack_start (unbind_button, false, false);
                unbind_button.signal_clicked().connect (sigc::mem_fun (*this, &KeyEditor::unbind));
 
-               add (unbind_box);
+               vpacker.pack_start (unbind_box, false, false);
                unbind_box.show ();
                unbind_button.show ();
 
        }
 
+       vpacker.set_border_width (12);
+
        view.show ();
        scroller.show ();
+       vpacker.show ();
 
        unbind_button.set_sensitive (false);
 }
index 1fc3c4415596e172c7018ce19572e34dec902617..ba374c71b2c6987d696d8262f93fd5a7249c9b81 100644 (file)
@@ -35,6 +35,7 @@ class KeyEditor : public ArdourWindow
            Gtk::TreeModelColumn<bool> bindable;
        };
 
+        Gtk::VBox vpacker;
        Gtk::ScrolledWindow scroller;
        Gtk::TreeView view;
        Glib::RefPtr<Gtk::TreeStore> model;