# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1252463293 -32400
# Node ID 9be4ab686f0d32eafcf303f1e606c97f6cedfa8c
# Parent  1d26e04101671caef8e7df927dafde53aa73d6c5
history: remove the space at left of menu button

diff --git a/hggtk/history.py b/hggtk/history.py
--- a/hggtk/history.py
+++ b/hggtk/history.py
@@ -594,11 +594,8 @@

         vmenu = gtk.MenuToolButton('')
         vmenu.set_menu(self.view_menu())
-        # A MenuToolButton has two parts; a Button and a ToggleButton
-        # we want to see the togglebutton, but not the button
-        b = vmenu.child.get_children()[0]
-        b.unmap()
-        b.set_sensitive(False)
+        # hide the Button widget; we want to see only Menu button
+        gobject.idle_add(lambda: vmenu.child.get_children()[0].hide())

         tbar = self.changeview.get_tbbuttons()
         tbar += [sep, self.nextbutton, self.allbutton, vmenu]

Attachment: thg-kuy_rev3911.patch
Description: Binary data

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to