[gnome-contacts] Add RowGroup.copy()



commit b300ca6fbbeab30f9732d8936d0551a63e4710a6
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Feb 14 11:18:21 2012 +0100

    Add RowGroup.copy()

 src/contacts-row.vala |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-row.vala b/src/contacts-row.vala
index 4469304..b1b87ed 100644
--- a/src/contacts-row.vala
+++ b/src/contacts-row.vala
@@ -50,6 +50,16 @@ public class Contacts.RowGroup : Object {
     rows = new Gee.ArrayList<Row>();
   }
 
+  public RowGroup copy () {
+    var n = new RowGroup (n_columns);
+
+    for (int i = 0; i < n_columns; i++)
+      n.column_info[i] = column_info[i];
+
+    return n;
+  }
+
+
   public ColumnInfo *get_column_info (int col) {
     return &column_info[col];
   }



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