[gnome-contacts] No need to make top_grid a class member



commit 415d595aaf763af230fc2de6849bc9d1c766676a
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Aug 25 21:15:43 2011 +0200

    No need to make top_grid a class member

 src/contacts-contact-pane.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 89dfbfa..b126196 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -325,7 +325,6 @@ public class Contacts.ContactPane : EventBox {
   private Contact? selected_contact;
   private Persona? editing_persona;
   private DisplayMode display_mode;
-  private Grid top_grid;
   private Grid card_grid;
   private Grid fields_grid;
   private Grid button_grid;
@@ -1135,7 +1134,7 @@ public class Contacts.ContactPane : EventBox {
     scrolled.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
     grid.attach (scrolled, 0, 1, 1, 1);
 
-    top_grid = new Grid ();
+    var top_grid = new Grid ();
     top_grid.set_orientation (Orientation.VERTICAL);
     scrolled.add_with_viewport (top_grid);
     scrolled.get_child().get_style_context ().add_class ("contact-pane");



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