Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable 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).

Changeset 49b954474172

Parent a1b4061ee4be

by Adrian Buehlmann

Changes to one file · Browse files at 49b954474172 Showing diff from parent a1b4061ee4be Diff from another changeset...

 
413
414
415
416
417
418
419
 
462
463
464
 
 
465
466
467
 
413
414
415
 
416
417
418
 
461
462
463
464
465
466
467
468
@@ -413,7 +413,6 @@
    self.expander = gtk.Expander()   self.expander.set_expanded(True) - self.add(self.expander)     # layout table for contents   self.table = gtklib.LayoutTable(ypad=1, headopts={'weight': 'bold'}) @@ -462,6 +461,8 @@
  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)