# HG changeset patch
# User Peer Sommerlund <p...@users.sourceforge.net>
# Date 1253017317 -7200
# Node ID ae903a1e4855cf6c52af0395c167f9662a104094
# Parent  f83cb2afb97e5b34d8924a9fc829a43a83c96823
gdialog: Make tool menu icons proper size

diff -r f83cb2afb97e -r ae903a1e4855 tortoisehg/hgtk/gdialog.py
--- a/tortoisehg/hgtk/gdialog.py        Tue Sep 15 00:30:32 2009 -0500
+++ b/tortoisehg/hgtk/gdialog.py        Tue Sep 15 14:21:57 2009 +0200
@@ -454,7 +454,10 @@
                             else:
                                 img = gtk.Image()
                                 ico = paths.get_tortoise_icon(icon_or_var)
-                                if ico: img.set_from_file(ico)
+                                if ico:
+                                    width, height = 
gtk.icon_size_lookup(gtk.ICON_SIZE_MENU)
+                                    pixbuf = 
gtk.gdk.pixbuf_new_from_file_at_size(ico, width, height)
+                                    img.set_from_pixbuf(pixbuf)
                             item.set_image(img)
                         else:
                             item = gtk.MenuItem(name)

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