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

gtklib: add 'force' option to the methods of LayoutGroup

Changeset f012073c2d46

Parent 31ca7a9d5031

by Yuki KODAMA

Changes to one file · Browse files at f012073c2d46 Showing diff from parent 31ca7a9d5031 Diff from another changeset...

 
330
331
332
333
 
334
335
 
336
337
338
 
351
352
353
354
 
355
356
357
 
330
331
332
 
333
334
 
335
336
337
338
 
351
352
353
 
354
355
356
357
@@ -330,9 +330,9 @@
  def add(self, *tables, **kargs):   self.tables.extend(tables)   if kargs.get('adjust', True): - self.adjust() + self.adjust(**kargs)   - def adjust(self): + def adjust(self, force=False):   def realized():   '''check all tables realized or not'''   for table in self.tables: @@ -351,7 +351,7 @@
  hid = [None]   hid[0] = table.connect('size-allocate', allocated, hid)   # check all realized - if not realized(): + if not force and not realized():   trylater()   return   # find out max width