[gnome-contacts/new-design] Use a label for the title in the select target dialog



commit 396158594fbfe040a3f15966bb246c09d1591df0
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Dec 16 14:24:00 2011 +0100

    Use a label for the title in the select target dialog

 src/contacts-contact-pane.vala |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index faf792e..df01c1f 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1986,9 +1986,19 @@ public class Contacts.ContactPane : ScrolledWindow {
     scrolled.set_shadow_type (ShadowType.IN);
     scrolled.add (tree_view);
 
+    var grid = new Grid ();
+    grid.set_orientation (Orientation.VERTICAL);
+    grid.set_row_spacing (6);
+
+    var l = new Label (title);
+    l.set_halign (Align.START);
+
+    grid.add (l);
+    grid.add (scrolled);
+
     var box = dialog.get_content_area () as Box;
-    box.pack_start (scrolled, true, true, 0);
-    scrolled.set_border_width (6);
+    box.pack_start (grid, true, true, 0);
+    grid.set_border_width (6);
 
     dialog.show_all ();
 



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