Adrian Buehlmann <adr...@cadifra.com> writes: > On 01.10.2009 22:53, Martin Geisler wrote: >> # HG changeset patch >> # User Martin Geisler <m...@lazybytes.net> >> # Date 1254430285 -7200 >> # Node ID 310364be9462660c2f6b4eae58f7c75efba9084a >> # Parent c2583e97e4ceccabb3df0ae4a478a42cbf2384b3 >> logview: use Monospace font family for ID column >> >> diff --git a/tortoisehg/hgtk/logview/treeview.py >> b/tortoisehg/hgtk/logview/treeview.py >> --- a/tortoisehg/hgtk/logview/treeview.py >> +++ b/tortoisehg/hgtk/logview/treeview.py >> @@ -431,6 +431,7 @@ >> cell = gtk.CellRendererText() >> cell.set_property("width-chars", 15) >> cell.set_property("ellipsize", pango.ELLIPSIZE_END) >> + cell.set_property("family", "Monospace") >> col = self.tvcolumns['id'] = gtk.TreeViewColumn(_('ID')) >> col.set_visible(False) >> col.set_resizable(True) > > Ah. What a good idea!
Thanks :-) I don't know why I didn't think of it earlier... I tried changing the width-chars property to 12 since there are 12 characters in a a short hash. But that lead to an ellipsis? In fact, 15 is the smallest width that gives no ellipsis for me... -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
pgpaHoO1mY8Sv.pgp
Description: PGP signature
------------------------------------------------------------------------------ Come build with us! The BlackBerry® 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/devconf
_______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop