# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1256736592 -32400
# Branch stable
# Node ID a2cdd126f43bd20489e47a95e16652005f955831
# Parent  97aca32d8052efee34b0430bbb5182201fcdb2aa
history: change drop-down list sensitive with label

diff --git a/tortoisehg/hgtk/history.py b/tortoisehg/hgtk/history.py
--- a/tortoisehg/hgtk/history.py
+++ b/tortoisehg/hgtk/history.py
@@ -957,7 +957,9 @@
         self.update_urllist()

         ## post pull drop-down list
-        syncbox.append_widget(gtk.Label(_('After Pull:')))
+        ppullbox = gtk.HBox()
+        syncbox.append_widget(ppullbox)
+        ppullbox.pack_start(gtk.Label(_('After Pull:')), False, False, 4)
         ppulldata = [('none', _('Nothing')), ('update', _('Update'))]
         ppull = self.repo.ui.config('tortoisehg', 'postpull', 'none')
         if 'fetch' in self.exs or 'fetch' == ppull:
@@ -968,7 +970,7 @@
         ppulllist = gtk.ListStore(str, # name
                                   str) # label (utf-8)
         ppullcombo = gtk.ComboBox(ppulllist)
-        syncbox.append_widget(ppullcombo)
+        ppullbox.pack_start(ppullcombo, False, False)
         cell = gtk.CellRendererText()
         ppullcombo.pack_start(cell)
         ppullcombo.add_attribute(cell, 'text', 1)
@@ -976,6 +978,7 @@
             ppulllist.append((name, label))
         self.ppullcombo = ppullcombo
         self.ppulldata = ppulldata
+        self.ppullbox = ppullbox

         self.update_postpull(ppull)

@@ -1250,7 +1253,7 @@
             self.cmd_set_sensitive(cmd, False)
             self.incoming_disabled_cmds.append(cmd)

-        ignore = (self.syncbar_apply, self.syncbar_reject, self.ppullcombo)
+        ignore = (self.syncbar_apply, self.syncbar_reject, self.ppullbox)
         self.incoming_disabled = []
         def disable_child(w):
             if (w not in ignore) and w.get_property('sensitive'):

Attachment: thg-kuy_rev4808.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