[gnome-contacts] Link dialog: Remove some unneeded code
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Link dialog: Remove some unneeded code
- Date: Tue, 24 Jan 2012 14:16:15 +0000 (UTC)
commit 796af7fa5ddcd437fad64b485a769e9dbffbdb0d
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jan 24 10:12:18 2012 +0100
Link dialog: Remove some unneeded code
We always make the data span 3 columns, it doesn't matter that
the 3rd column sometimes is empty.
src/contacts-link-dialog.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-link-dialog.vala b/src/contacts-link-dialog.vala
index 5227468..02909b1 100644
--- a/src/contacts-link-dialog.vala
+++ b/src/contacts-link-dialog.vala
@@ -66,7 +66,6 @@ public class Contacts.LinkDialog : Dialog {
label.set_ellipsize (Pango.EllipsizeMode.END);
persona_grid.attach (label, 1, 1, 1, 1);
- int is_main = contact.is_main ? 1 : 0;
if (contact.is_main) {
var link_button = new Button.with_label (_("Link"));
link_button.set_hexpand (false);
@@ -119,7 +118,7 @@ public class Contacts.LinkDialog : Dialog {
grid.set_orientation (Orientation.VERTICAL);
grid.set_border_width (8);
- persona_grid.attach (grid, 0, 2, 2 + is_main, 1);
+ persona_grid.attach (grid, 0, 2, 3, 1);
var emails = Contact.sort_fields<EmailFieldDetails>(selected_contact.individual.email_addresses);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]