# HG changeset patch
# User Giampaolo Fadel <gp.fa...@gmail.com>
# Date 1243513902 -7200
# Node ID 184afd8d769ead1f802c974cf25a94fcfc888490
# Parent  c4d14541d711a49a6c3e082b7dc363441950938d
gdialog: remove the default value for parameter primary

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

diff --git a/hggtk/gdialog.py b/hggtk/gdialog.py
--- a/hggtk/gdialog.py
+++ b/hggtk/gdialog.py
@@ -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 = ''

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to