[gnome-contacts] Fix display of "empty" postal addresses
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Fix display of "empty" postal addresses
- Date: Mon, 20 Jun 2011 18:25:27 +0000 (UTC)
commit 69dcbc1f750837457ac8543e76f54764e99cc7c0
Author: Alexander Larsson <alexl redhat com>
Date: Mon Jun 20 14:52:44 2011 +0200
Fix display of "empty" postal addresses
src/contacts-contact-pane.vala | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index f66acde..cbe5212 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -278,8 +278,8 @@ public class Contacts.ContactPane : EventBox {
type = type + i.get();
}
string[] strs = Contact.format_address (addr);
+ layout.add_label (type);
if (strs.length > 0) {
- layout.add_label (type);
foreach (var s in strs)
layout.add_detail (s);
}
@@ -303,11 +303,10 @@ public class Contacts.ContactPane : EventBox {
}
return false;
});
- }
+ }
catch (Error e) {
}
});
-
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]