[gitg/vala] Fix tag and lanes for commit



commit 69cc534b51ed0f9835df16bfa8379cc6d7b3a642
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Sun Apr 22 15:11:43 2012 +0200

    Fix tag and lanes for commit

 libgitg/gitg-commit.vala |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/libgitg/gitg-commit.vala b/libgitg/gitg-commit.vala
index ff67a22..905d43b 100644
--- a/libgitg/gitg-commit.vala
+++ b/libgitg/gitg-commit.vala
@@ -3,12 +3,13 @@ namespace Gitg
 
 public class Commit : Ggit.Commit
 {
-	public Lane.Tag tag { get; set; }
-	public unowned SList<Lane> lanes { get; set; }
+	public LaneTag tag { get; set; }
+
+	private uint d_mylane;
 
-	private ushort d_mylane;
+	public unowned SList<Lane> lanes { get; set; }
 
-	public ushort mylane
+	public uint mylane
 	{
 		get	{ return d_mylane; }
 		set
@@ -18,7 +19,7 @@ public class Commit : Ggit.Commit
 		}
 	}
 
-	public unowned Lane lane
+	public Lane lane
 	{
 		get { return lanes.nth_data(d_mylane); }
 	}
@@ -38,14 +39,14 @@ public class Commit : Ggit.Commit
 			return;
 		}
 
-		lane.tag &= ~(Lane.Tag.SIGN_STASH |
-		              Lane.Tag.SIGN_STAGED |
-		              Lane.Tag.SIGN_UNSTAGED) | tag;
+		lane.tag &= ~(LaneTag.SIGN_STASH |
+		              LaneTag.SIGN_STAGED |
+		              LaneTag.SIGN_UNSTAGED) | tag;
 	}
 
-	public void update_lanes(SList<Lane> lanes, int mylane)
+	public void update_lanes(owned SList<Lane> lanes, int mylane)
 	{
-		this.lanes = lanes;
+		lanes = (owned)lanes;
 
 		if (mylane >= 0)
 		{



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