Reviewers: ,


Please review this at http://codereview.tryton.org/236002/

Affected files:
  M tryton/common/common.py


Index: tryton/common/common.py
===================================================================
--- a/tryton/common/common.py
+++ b/tryton/common/common.py
@@ -566,17 +566,20 @@

     def build_dialog(self, parent, message, title):
dialog = super(UserWarningDialog, self).build_dialog(parent, message,
-            title, gtk.BUTTONS_OK_CANCEL)
+            title, gtk.BUTTONS_YES_NO)
         check = gtk.CheckButton(_('Always ignore this warning.'))
         check.connect_after('toggled', self._set_always)
-        alignment = gtk.Alignment(1, 0.5)
+        alignment = gtk.Alignment(0, 0.5)
         alignment.add(check)
-        dialog.vbox.pack_end(alignment, True, False)
+        dialog.vbox.pack_start(alignment, True, False)
+        label = gtk.Label(_('Do you want to proceed?'))
+        label.set_alignment(1, 0.5)
+        dialog.vbox.pack_start(label, True, True)
         return dialog

     def __call__(self, message, title):
         response = super(UserWarningDialog, self).__call__(message, title)
-        if response == gtk.RESPONSE_OK:
+        if response == gtk.RESPONSE_YES:
             if self.always:
                 return 'always'
             return 'ok'


--
[email protected] mailing list

Reply via email to