Allows revline_markup() to function when called without
highlight parameter specified.


# HG changeset patch
# User Emmanuel Rosa <goaway1...@gmail.com>
# Date 1256339217 14400
# Branch stable
# Node ID e99854462f58cb9e03468c6f648575008055322c
# Parent  0a253cba0359da1e06613a67c7dded398626fe43
changeset: provide a default revline markup highlight value

Allows revline_markup() to function when called without
highlight parameter specified.

diff --git a/tortoisehg/hgtk/changeset.py b/tortoisehg/hgtk/changeset.py
--- a/tortoisehg/hgtk/changeset.py
+++ b/tortoisehg/hgtk/changeset.py
@@ -476,7 +476,7 @@
                 return _('Patch:')
             raise csinfo.UnknownItem(item)
         def markup_func(widget, item, value):
-            def revline_markup(revnum, revid, summary, highlight):
+            def revline_markup(revnum, revid, summary, highlight=None):
                 revnum = gtklib.markup(revnum)
                 summary = gtklib.markup(summary)
                 if revid:
@@ -498,7 +498,7 @@
                 return csets
             raise csinfo.UnknownItem(item)
         def widget_func(widget, item, markups):
-            def linkwidget(revnum, revid, summary, highlight):
+            def linkwidget(revnum, revid, summary, highlight=None):
                 opts = dict(underline='single', foreground='#0000FF')
                 if highlight:
                     opts['weight'] = 'bold'
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to