[gnome-contacts] Link dialog: Make Link button non-expand with nice width



commit 2a893a50ce16e77f0523e03b34dd536e01a2eb19
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jan 24 10:06:09 2012 +0100

    Link dialog: Make Link button non-expand with nice width
    
    We pack it into a buttonbox to make it get a decent minimal
    size

 src/contacts-link-dialog.vala |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-link-dialog.vala b/src/contacts-link-dialog.vala
index 27e2bce..31a8447 100644
--- a/src/contacts-link-dialog.vala
+++ b/src/contacts-link-dialog.vala
@@ -69,9 +69,11 @@ public class Contacts.LinkDialog : Dialog {
     int is_main = contact.is_main ? 1 : 0;
     if (contact.is_main) {
       var link_button = new Button.with_label (_("Link"));
-      link_button.set_hexpand (true);
+      link_button.set_hexpand (false);
       link_button.set_valign (Align.CENTER);
-      persona_grid.attach (link_button, 2, 0, 1, 2);
+      var bbox = new ButtonBox (Orientation.HORIZONTAL);
+      bbox.add (link_button);
+      persona_grid.attach (bbox, 2, 0, 1, 2);
 
       link_button.clicked.connect ( (button) => {
 	string[] selected_contact_personas_iids = {};



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