# HG changeset patch
# User Wagner Bruna <wbr...@softwareexpress.com.br>
# Date 1255120658 10800
# Node ID bd95f1a05b594dca8cea947079ed014a74cf6059
# Parent  75af0e6d69ae08afb4f06ff9c796edfd2f3b14ce
mq: reposition popup menu

Depending on the gtk theme, the first menu item may be
already selected under the cursor when the menu pops up,
so releasing the button immediately activates it. This
apparently innocuous change places the menu slightly to
the right, avoiding the problem.

Tested on a Debian Lenny with the qtcurve theme.

diff --git a/tortoisehg/hgtk/thgmq.py b/tortoisehg/hgtk/thgmq.py
--- a/tortoisehg/hgtk/thgmq.py
+++ b/tortoisehg/hgtk/thgmq.py
@@ -543,7 +543,7 @@
 
         if len(menu.get_children()) > 0:
             menu.show_all()
-            menu.popup(None, None, None, 0, 0)
+            menu.popup(None, None, lambda x: None, 0, 0)
 
     def create_view_menu(self):
         menu = gtk.Menu()

------------------------------------------------------------------------------
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