Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable changeset: provide a default revline markup highlight value

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

Changeset e99854462f58

Parent 0a253cba0359

by Emmanuel Rosa

Changes to one file · Browse files at e99854462f58 Showing diff from parent 0a253cba0359 Diff from another changeset...

 
476
477
478
479
 
480
481
482
 
498
499
500
501
 
502
503
504
 
476
477
478
 
479
480
481
482
 
498
499
500
 
501
502
503
504
@@ -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'