From 5ff3b98733b5a8ca60b4d9c470f13acc0455d013 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 13 Jul 2011 13:58:11 +0100 Subject: [PATCH] Fix id card widget layout --- src/moonshot-idcard-widget.vala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/moonshot-idcard-widget.vala b/src/moonshot-idcard-widget.vala index bab5abf..4c8cfc5 100644 --- a/src/moonshot-idcard-widget.vala +++ b/src/moonshot-idcard-widget.vala @@ -5,7 +5,7 @@ class IdCardWidget : Box public IdCard id_card { get; set; default = null; } private VBox main_vbox; - private Table table; + private HBox table; public Button delete_button { get; private set; default = null; } public Button details_button { get; private set; default = null; } public Button send_button { get; private set; default = null; } @@ -94,10 +94,11 @@ class IdCardWidget : Box var id_data_label = new Label (null); id_data_label.set_markup (text); id_data_label.set_alignment ((float) 0, (float) 0.5); + id_data_label.set_ellipsize (Pango.EllipsizeMode.END); - this.table = new Table (1, 2, false); - table.attach_defaults (image, 0, 1, 0, 1); - table.attach_defaults (id_data_label, 1, 2, 0, 1); + table = new Gtk.HBox (false, 6); + table.pack_start (image, false, false, 0); + table.pack_start (id_data_label, true, true, 0); this.delete_button = new Button.with_label (_("Delete")); this.details_button = new Button.with_label (_("View details")); -- 2.1.4