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

gdialog: move packing of widgets to the end of _setup_gtk

Move them together into a separate block.

This will ease separation of order of object creation
from order of packing (see next change).

Changeset 05a9ce1e6050

Parent 4414e41c6375

by Adrian Buehlmann

Changes to one file · Browse files at 05a9ce1e6050 Showing diff from parent 4414e41c6375 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​gdialog.py Stacked
 
408
409
410
411
412
413
414
415
416
 
452
453
454
455
456
457
458
 
460
461
462
463
464
465
466
467
468
469
470
 
 
 
 
 
 
 
471
472
473
 
408
409
410
 
 
 
411
412
413
 
449
450
451
 
452
453
454
 
456
457
458
 
459
460
461
 
462
463
464
465
466
467
468
469
470
471
472
473
474
@@ -408,9 +408,6 @@
  if x >= 0 and x < w and y >= 0 and y < h:   self.move(x, y)   - vbox = gtk.VBox(False, 0) - self.add(vbox) -   menus = self.get_menu_list()   if menus:   allmenus = [ @@ -452,7 +449,6 @@
  item.set_submenu(menu)   item.set_right_justified(rightjustified)   menubar.append(item) - vbox.pack_start(menubar, False, False, 0)     self.tooltips = gtk.Tooltips()   toolbar = gtk.Toolbar() @@ -460,14 +456,19 @@
  for tbutton in tbuttons:   toolbar.insert(tbutton, -1)   self.toolbar = toolbar - vbox.pack_start(toolbar, False, False, 0)     # Subclass returns the main body   body = self.get_body() - vbox.pack_start(body, True, True, 0)     # Subclass provides extra stuff in bottom hbox   extras = self.get_extras() + + vbox = gtk.VBox(False, 0) + self.add(vbox) + if menus: + vbox.pack_start(menubar, False, False, 0) + vbox.pack_start(toolbar, False, False, 0) + vbox.pack_start(body, True, True, 0)   if extras:   vbox.pack_end(extras, False, False, 0)