[gnome-contacts] Add third pane with buttons



commit 3ca292e4879567a9b2c4e88aad883d88e0b1ee93
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 11 09:08:22 2011 +0200

    Add third pane with buttons

 src/contacts-app.vala |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 6d08854..c0635fd 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -327,6 +327,40 @@ public class Contacts.App : Window {
     grid2.attach (scrolled, 0, 1, 1, 1);
     grid.attach (frame, 1, 0, 1, 2);
 
+    var ebox = new EventBox ();
+    Gdk.RGBA white = {1, 1, 1, 1};
+    ebox.override_background_color (0, white);
+    ebox.set_hexpand (true);
+    grid.attach (ebox, 2, 0, 1, 2);
+
+    var vbox = new Box (Orientation.VERTICAL, 0);
+    vbox.set_border_width (10);
+    ebox.add (vbox);
+    vbox.set_hexpand (true);
+    vbox.set_vexpand (true);
+
+    var hbox = new Box (Orientation.HORIZONTAL, 10);
+    vbox.pack_end (hbox, false, false, 0);
+
+    var bbox = new ButtonBox (Orientation.HORIZONTAL);
+    bbox.set_layout (ButtonBoxStyle.START);
+    hbox.pack_start (bbox, true, true, 0);
+
+    var button = new Button.with_label(_("Notes"));
+    bbox.pack_start (button, false, false, 0);
+    button = new Button.with_label(_("Edit"));
+    bbox.pack_start (button, false, false, 0);
+
+    button = new Button ();
+    var label = new Label (_("More"));
+    var arrow = new Arrow (ArrowType.DOWN, ShadowType.NONE);
+    var hbox2 = new Box (Orientation.HORIZONTAL, 0);
+    hbox2.pack_start (label, true, false, 0);
+    hbox2.pack_start (arrow, false, false, 0);
+    button.add (hbox2);
+    bbox.pack_end (button, false, false, 0);
+    bbox.set_child_secondary (button, true);
+
     tree_view = new TreeView.with_model (contacts_store);
     setup_contacts_view (tree_view);
     scrolled.add(tree_view);



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