Changeset 49b954474172…
Parent a1b4061ee4be…
by
Changes to one file · Browse files at 49b954474172 Showing diff from parent a1b4061ee4be Diff from another changeset...
@@ -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)
|
Loading...