@matheusbsbs / matheus-bagliano / commits / 3abe217a5b
Fork 0

gitview: Select the text color based on whether the entry in highlighted. Use standard font.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Pavel Roskin committed Feb 28, 2006 at 19:11 UTC 3abe217a5bd1aefa748d53c08704b2a8a622307c
1 file changed +11 -8
contrib/gitview/gitview
+11 -8
@@ -239,20 +239,23 @@ class CellRendererGraph(gtk.GenericCellRenderer):
239 box_size / 4, 0, 2 * math.pi)
240
241
242 + self.set_colour(ctx, colour, 0.0, 0.5)
243 + ctx.stroke_preserve()
244 +
245 + self.set_colour(ctx, colour, 0.5, 1.0)
246 + ctx.fill_preserve()
247 +
248 if (len(names) != 0):
249 name = " "
250 for item in names:
251 name = name + item + " "
252
247 - ctx.select_font_face("Monospace")
253 ctx.set_font_size(13)
249 - ctx.text_path(name)
250 -
251 - self.set_colour(ctx, colour, 0.0, 0.5)
252 - ctx.stroke_preserve()
253 -
254 - self.set_colour(ctx, colour, 0.5, 1.0)
255 - ctx.fill()
254 + if (flags & 1):
255 + self.set_colour(ctx, colour, 0.5, 1.0)
256 + else:
257 + self.set_colour(ctx, colour, 0.0, 0.5)
258 + ctx.show_text(name)
259
260 class Commit:
261 """ This represent a commit object obtained after parsing the git-rev-list