[gitg] Use the same color for every long-runing lane
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Use the same color for every long-runing lane
- Date: Fri, 17 May 2013 11:23:56 +0000 (UTC)
commit cde980872aa2fb302ed040f4cc8200e59c5e5958
Author: Techlive Zheng <techlivezheng gmail com>
Date: Thu May 16 18:36:17 2013 +0800
Use the same color for every long-runing lane
Signed-off-by: Ignacio Casal Quinteiro <icq gnome org>
libgitg/gitg-lanes.vala | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/libgitg/gitg-lanes.vala b/libgitg/gitg-lanes.vala
index b96acd0..36007a2 100644
--- a/libgitg/gitg-lanes.vala
+++ b/libgitg/gitg-lanes.vala
@@ -167,7 +167,7 @@ public class Lanes : Object
mylane.to = poid;
mylane.from = myoid;
mylane.lane.from.append(lnpos);
- mylane.lane.color = Color.next();
+ mylane.lane.color = mylane.lane.color.copy();
mylane.inactive = 0;
d_lanes.remove(container);
}
@@ -175,7 +175,7 @@ public class Lanes : Object
{
container.from = myoid;
container.lane.from.append(pos);
- container.lane.color.next_index();
+ container.lane.color = container.lane.color.copy();
container.inactive = 0;
}
@@ -187,14 +187,7 @@ public class Lanes : Object
// commit lane, so set it now
mylane.to = poid;
- if (parents.size() > 1)
- {
- mylane.lane.color = Color.next();
- }
- else
- {
- mylane.lane.color = mylane.lane.color.copy();
- }
+ mylane.lane.color = mylane.lane.color.copy();
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]