# HG changeset patch
# User Adrian Buehlmann <adr...@cadifra.com>
# Date 1253894159 -7200
# Node ID 394ad9ad61f34e8c08a084d70e8466f9e7c8df5a
# Parent  51c4cf456c7e5f86f8b933e84b786b37d68e0d72
update: use gtk.STOCK_CANCEL instead of STOCK_CLOSE

On Windows the standard dialog buttons are labled "Ok" (or
here: "Update") and then "Cancel" (not "Close").

diff --git a/tortoisehg/hgtk/update.py b/tortoisehg/hgtk/update.py
--- a/tortoisehg/hgtk/update.py
+++ b/tortoisehg/hgtk/update.py
@@ -48,7 +48,7 @@ class UpdateDialog(gtk.Dialog):
         self.updatebtn = gtk.Button(_('Update'))
         self.updatebtn.connect('clicked', lambda b: self.update(repo))
         self.action_area.pack_end(self.updatebtn)
-        self.closebtn = self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)
+        self.closebtn = self.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CLOSE)
 
         # layout table for fixed items
         table = gtklib.LayoutTable(width=9)

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to