# HG changeset patch
# User Adrian Buehlmann <[email protected]>
# Date 1256030877 -7200
# Branch stable
# Node ID 2cf8c6ef716b0a1005a351d848b17d3a29b3a8e9
# Parent a54a90a04d7fde4bc046802fc295c449d989d8ca
csinfo: defer adding of child until update
The frame's child isn't added at all if there are no
markups.
This fixes the problem of seeing two (+) signs in
the log viewer, when no changeset has been selected
yet (after start of the log viewer).
diff --git a/tortoisehg/hgtk/csinfo.py b/tortoisehg/hgtk/csinfo.py
--- a/tortoisehg/hgtk/csinfo.py
+++ b/tortoisehg/hgtk/csinfo.py
@@ -398,7 +398,6 @@ class SummaryPanel(SummaryBase, gtk.Fram
self.csstyle = style
self.expander = gtk.Expander()
- self.add(self.expander)
# layout table for contents
self.table = gtklib.LayoutTable(ypad=1, headopts={'weight': 'bold'})
@@ -447,6 +446,8 @@ class SummaryPanel(SummaryBase, gtk.Fram
continue
if isinstance(markups, basestring):
markups = (markups,)
+ if markups and not self.get_child():
+ self.add(self.expander)
for text in markups:
body = gtk.Label()
body.set_selectable(sel)
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop