[gitg/vala] Added getting/setting include/exlude oids for model



commit c7adb66718d6ace295dd59e33a878330a95ada2d
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Sun Apr 15 14:55:57 2012 +0200

    Added getting/setting include/exlude oids for model

 libgitg/gitg-commit-model.vala |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/libgitg/gitg-commit-model.vala b/libgitg/gitg-commit-model.vala
index 96dc67d..54024da 100644
--- a/libgitg/gitg-commit-model.vala
+++ b/libgitg/gitg-commit-model.vala
@@ -13,9 +13,9 @@ public class CommitModel : Object
 
 	public uint limit { get; set; }
 
-	private Ggit.OId[] include { get; set; }
-	private Ggit.OId[] exclude { get; set; }
-	
+	private Ggit.OId[] d_include;
+	private Ggit.OId[] d_exclude;
+
 	public signal void started();
 	public signal void update(uint added);
 	public signal void finished();
@@ -42,6 +42,16 @@ public class CommitModel : Object
 		cancel();
 	}
 
+	public void set_include(Ggit.OId[] ids)
+	{
+		d_include = ids;
+	}
+
+	public void set_exclude(Ggit.OId[] ids)
+	{
+		d_exclude = ids;
+	}
+
 	private void cancel()
 	{
 		if (d_cancellable == null)
@@ -143,8 +153,8 @@ public class CommitModel : Object
 
 	private async void walk()
 	{
-		Ggit.OId[] included = include;
-		Ggit.OId[] excluded = exclude;
+		Ggit.OId[] included = d_include;
+		Ggit.OId[] excluded = d_exclude;
 
 		d_cancellable = new Cancellable();
 		uint limit = this.limit;



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