[gnome-contacts] Scroll whole right hand side



commit 05d4715fcac36df37f39100fd8fc566f417ef1d0
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jun 7 16:48:15 2011 +0200

    Scroll whole right hand side

 src/contacts-app.vala |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index d7a65a7..8a16be6 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -26,7 +26,6 @@ public class Contacts.App : Window {
   private Contact selected_contact;
   TreeView contacts_tree_view;
   Grid fields_grid;
-  Grid card_grid;
   SizeGroup label_size_group;
 
   public IndividualAggregator aggregator { get; private set; }
@@ -239,6 +238,11 @@ public class Contacts.App : Window {
 	image.set_from_pixbuf (pixbuf);
     }
 
+    var card_grid = new Grid ();
+    card_grid.set_row_spacing (8);
+
+    fields_grid.attach (card_grid, 0, 0, 1, 1);
+
     card_grid.attach (image_frame, 0, 0, 1, 1);
 
     var g = new Grid ();
@@ -376,14 +380,10 @@ public class Contacts.App : Window {
     add_label_spacer ();
     add_string_label (_("Twitter"), "mytwittername", null, out row);
 
-    card_grid.show_all ();
     fields_grid.show_all ();
   }
 
   private void clear_display () {
-    foreach (var w in card_grid.get_children ()) {
-      w.destroy ();
-    }
     foreach (var w in fields_grid.get_children ()) {
       w.destroy ();
     }
@@ -496,16 +496,11 @@ public class Contacts.App : Window {
     right_grid.set_border_width (10);
     ebox.add (right_grid);
 
-    label_size_group = new SizeGroup (SizeGroupMode.HORIZONTAL);
-    card_grid = new Grid ();
-    card_grid.set_row_spacing (8);
-
-    right_grid.attach (card_grid, 0, 0, 1, 1);
-
     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);
@@ -513,6 +508,8 @@ public class Contacts.App : Window {
 
     right_grid.attach (fields_scrolled, 0, 1, 1, 1);
 
+    label_size_group = new SizeGroup (SizeGroupMode.HORIZONTAL);
+
     var bbox = new ButtonBox (Orientation.HORIZONTAL);
     bbox.set_spacing (5);
     bbox.set_layout (ButtonBoxStyle.START);



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