[gnome-contacts] Always clear old widgets when contact changes
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Always clear old widgets when contact changes
- Date: Fri, 17 Jun 2011 14:07:16 +0000 (UTC)
commit 9f8d2133e3a2e288e7c1b6071bae9884f8243ec5
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jun 16 13:46:30 2011 +0200
Always clear old widgets when contact changes
src/contacts-contact-pane.vala | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 1711fbc..099157e 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -326,6 +326,10 @@ public class Contacts.ContactPane : EventBox {
}
private void set_display_mode (DisplayMode mode) {
+ foreach (var w in fields_grid.get_children ()) {
+ w.destroy ();
+ }
+
if (display_mode == mode)
return;
@@ -338,9 +342,6 @@ public class Contacts.ContactPane : EventBox {
normal_buttons.hide ();
editing_buttons.show ();
}
- foreach (var w in fields_grid.get_children ()) {
- w.destroy ();
- }
}
public void show_contact (Contact? new_contact) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]