[gnome-contacts] Never horizontally scroll the right pane



commit 7ba9e1836691cf243840956a8ca0b356d073cd04
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 18 08:25:14 2011 +0200

    Never horizontally scroll the right pane

 src/contacts-app.vala |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 5ff7410..bc5e85e 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -357,6 +357,10 @@ public class Contacts.App : Window {
     middle_grid.attach (scrolled, 0, 1, 1, 1);
     grid.attach (frame, 0, 0, 1, 2);
 
+    contacts_tree_view = new TreeView.with_model (filter_model);
+    setup_contacts_view (contacts_tree_view);
+    scrolled.add (contacts_tree_view);
+
     var ebox = new EventBox ();
     ebox.set_hexpand (true);
     grid.attach (ebox, 1, 0, 1, 2);
@@ -374,6 +378,7 @@ public class Contacts.App : Window {
     var fields_scrolled = new ScrolledWindow (null, null);
     fields_scrolled.set_hexpand (true);
     fields_scrolled.set_vexpand (true);
+    fields_scrolled.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
     fields_grid = new Grid ();
     fields_grid.set_orientation (Orientation.VERTICAL);
     fields_scrolled.add_with_viewport (fields_grid);
@@ -399,10 +404,6 @@ public class Contacts.App : Window {
     bbox.pack_end (button, false, false, 0);
     bbox.set_child_secondary (button, true);
 
-    contacts_tree_view = new TreeView.with_model (filter_model);
-    setup_contacts_view (contacts_tree_view);
-    scrolled.add (contacts_tree_view);
-
     grid.show_all ();
   }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]