[gnome-contacts/new-design] Rename ContactsRow to Row



commit 8ab0d35a81e124a6dfc8a0b1b98df655011b6924
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Dec 8 11:20:01 2011 +0100

    Rename ContactsRow to Row
    
    This will be more generally useful

 src/contacts-contact-pane.vala |   18 +++++++++---------
 src/contacts-row.vala          |    4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 1b45ad0..0369253 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -416,8 +416,8 @@ public class Contacts.AvatarMenu : Menu {
 public class Contacts.PersonaSheet : Grid {
   ContactPane pane;
   Persona persona;
-  ContactRow header;
-  ContactRow footer;
+  Row header;
+  Row footer;
 
   abstract class Field : Grid {
     public class string label_name;
@@ -425,14 +425,14 @@ public class Contacts.PersonaSheet : Grid {
     public PersonaSheet sheet { get; construct; }
     public int row_nr { get; construct; }
     public bool added;
-    ContactRow label_row;
+    Row label_row;
 
     public abstract void populate ();
 
     construct {
       this.set_orientation (Orientation.VERTICAL);
 
-      label_row = new ContactRow (sheet.pane);
+      label_row = new Row (sheet.pane);
       this.add (label_row);
       label_row.label (label_name);
     }
@@ -453,8 +453,8 @@ public class Contacts.PersonaSheet : Grid {
       }
     }
 
-    public ContactRow new_row () {
-      var row = new ContactRow (sheet.pane);
+    public Row new_row () {
+      var row = new Row (sheet.pane);
       this.add (row);
       return row;
     }
@@ -650,7 +650,7 @@ public class Contacts.PersonaSheet : Grid {
       Contact.persona_has_writable_property (persona, "postal-addresses");
 
     if (!persona.store.is_primary_store) {
-      header = new ContactRow (pane);
+      header = new Row (pane);
       this.attach (header, 0, row_nr++, 1, 1);
 
       var label = new Label ("");
@@ -676,7 +676,7 @@ public class Contacts.PersonaSheet : Grid {
     }
 
     if (editable) {
-      footer = new ContactRow (pane);
+      footer = new Row (pane);
       this.attach (footer, 0, row_nr++, 1, 1);
       var b = new Button.with_label ("Add detail...");
       footer.pack_start (b);
@@ -847,7 +847,7 @@ public class Contacts.ContactPane : ScrolledWindow {
 
     this.get_child().get_style_context ().add_class ("contact-pane");
 
-    var top_row = new ContactRow (this);
+    var top_row = new Row (this);
     top_row.left.set_size_request (32, -1);
     top_grid.add (top_row);
     card_grid = new Grid ();
diff --git a/src/contacts-row.vala b/src/contacts-row.vala
index ac51dc4..df16b15 100644
--- a/src/contacts-row.vala
+++ b/src/contacts-row.vala
@@ -18,13 +18,13 @@
 
 using Gtk;
 
-public class Contacts.ContactRow : Grid {
+public class Contacts.Row : Grid {
   public Alignment left;
   public Grid content;
   public Alignment right;
   int start;
 
-  public ContactRow (ContactPane pane) {
+  public Row (ContactPane pane) {
     this.set_orientation (Orientation.HORIZONTAL);
     this.set_column_spacing (8);
 



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