# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1256173931 -32400
# Branch stable
# Node ID a65819ee8b5eaec38cfaeca440ee2aa1284678b0
# Parent  7c8f627fb3cb3e76adcf1dfa30ce827295610ad5
thgconfig: fix the order of bottom buttons

"[OK] [Cancel] [Apply]" is the common order on Windows.
i.e. Display Properties, Recycle Bin Properties, ...etc

diff --git a/tortoisehg/hgtk/thgconfig.py b/tortoisehg/hgtk/thgconfig.py
--- a/tortoisehg/hgtk/thgconfig.py
+++ b/tortoisehg/hgtk/thgconfig.py
@@ -516,11 +516,11 @@
     def __init__(self, configrepo=False):
         """ Initialize the Dialog. """
         gtk.Dialog.__init__(self, parent=None, flags=0,
-                          buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
-                                   gtk.STOCK_APPLY, gtk.RESPONSE_APPLY,
-                                   gtk.STOCK_OK, gtk.RESPONSE_OK))
+                            buttons=(gtk.STOCK_OK, gtk.RESPONSE_OK,
+                                     gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
+                                     gtk.STOCK_APPLY, gtk.RESPONSE_APPLY))
         gtklib.set_tortoise_keys(self)
-        self._btn_apply = self.action_area.get_children()[1]
+        self._btn_apply = self.action_area.get_children()[0]

         self.ui = ui.ui()
         try:

Attachment: thg-kuy_rev4713.patch
Description: Binary data

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to