Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

gdialog: remove the default value for parameter primary

There is no more call to this function with this parameter not specified.

Changeset 184afd8d769e

Parent c4d14541d711

by Giampaolo Fadel

Changes to one file · Browse files at 184afd8d769e Showing diff from parent c4d14541d711 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​gdialog.py Stacked
 
74
75
76
77
 
78
79
80
81
82
83
84
85
 
74
75
76
 
77
78
79
80
 
 
81
82
83
@@ -74,12 +74,10 @@
 class Confirm(SimpleMessage):   """Dialog returns gtk.RESPONSE_YES or gtk.RESPONSE_NO   """ - def __init__(self, title, files, parent, primary=None): + def __init__(self, title, files, parent, primary):   SimpleMessage.__init__(self, parent, gtk.DIALOG_MODAL,   gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO)   self.set_title(hglib.toutf(title)) - if primary is None: - primary = title + '?'   primary = '<b>' + primary + '</b>'   self.set_markup(hglib.toutf(primary))   message = ''