Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitview: Select the text color based on whether the entry in highlighted. Use standard font.
author
Pavel Roskin
<proski@gnu.org>
Tue, 28 Feb 2006 13:41:08 +0000
(19:11 +0530)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 28 Feb 2006 19:02:02 +0000
(11:02 -0800)
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/gitview/gitview
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
f3a4ec4
)
diff --git
a/contrib/gitview/gitview
b/contrib/gitview/gitview
index 048caf6f86b555ee0cbf598f91a50408f594f82b..aded7ede7028fc8dd3298fce81e4ad0da9d54a02 100755
(executable)
--- a/
contrib/gitview/gitview
+++ b/
contrib/gitview/gitview
@@
-239,20
+239,23
@@
class CellRendererGraph(gtk.GenericCellRenderer):
box_size / 4, 0, 2 * math.pi)
box_size / 4, 0, 2 * math.pi)
+ self.set_colour(ctx, colour, 0.0, 0.5)
+ ctx.stroke_preserve()
+
+ self.set_colour(ctx, colour, 0.5, 1.0)
+ ctx.fill_preserve()
+
if (len(names) != 0):
name = " "
for item in names:
name = name + item + " "
if (len(names) != 0):
name = " "
for item in names:
name = name + item + " "
- ctx.select_font_face("Monospace")
ctx.set_font_size(13)
ctx.set_font_size(13)
- ctx.text_path(name)
-
- self.set_colour(ctx, colour, 0.0, 0.5)
- ctx.stroke_preserve()
-
- self.set_colour(ctx, colour, 0.5, 1.0)
- ctx.fill()
+ if (flags & 1):
+ self.set_colour(ctx, colour, 0.5, 1.0)
+ else:
+ self.set_colour(ctx, colour, 0.0, 0.5)
+ ctx.show_text(name)
class Commit:
""" This represent a commit object obtained after parsing the git-rev-list
class Commit:
""" This represent a commit object obtained after parsing the git-rev-list