Rev 583: Show threads in loom dialog. in file:///data/jelmer/bzr-gtk/trunk/

Jelmer Vernooij jelmer at samba.org
Thu Jul 31 01:11:08 BST 2008


At file:///data/jelmer/bzr-gtk/trunk/

------------------------------------------------------------
revno: 583
revision-id: jelmer at samba.org-20080731001107-ypd79zksgjesfm1u
parent: jelmer at samba.org-20080731000721-tbg7rh6302eywkj8
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Thu 2008-07-31 02:11:07 +0200
message:
  Show threads in loom dialog.
modified:
  loom.py                        loom.py-20080730235158-elzoq27ll0eh6401-1
=== modified file 'loom.py'
--- a/loom.py	2008-07-31 00:07:21 +0000
+++ b/loom.py	2008-07-31 00:11:07 +0000
@@ -38,6 +38,7 @@
         self.branch = branch
 
         self._construct()
+        self._load_threads()
 
     def run(self):
         try:
@@ -55,14 +56,16 @@
         return super(LoomDialog, self).run()
 
     def _construct(self):
+        hbox = gtk.HBox()
+
         self._threads_scroller = gtk.ScrolledWindow()
         self._threads_scroller.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
         self._threads_view = gtk.TreeView()
-        self._threads_view.show()
         self._threads_scroller.add(self._threads_view)
         self._threads_scroller.set_shadow_type(gtk.SHADOW_IN)
-        self._threads_scroller.show()
-        self.vbox.pack_start(self._threads_scroller)
+        hbox.pack_start(self._threads_scroller)
+        self.vbox.pack_start(hbox)
+        hbox.show_all()
 
         self._threads_store = gtk.ListStore(
                 gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
@@ -72,8 +75,6 @@
         # Buttons: combine-thread, export-loom, revert-loom, up-thread
         self.set_default_size(200, 350)
 
-        self._load_threads()
-
     def _load_threads(self):
         self._threads_store.clear()
         




More information about the bazaar-commits mailing list