Rev 428: Always show bugs tab. in file:///data/jelmer/bzr-gtk/bugstab/

Jelmer Vernooij jelmer at samba.org
Sun Jan 27 01:05:33 GMT 2008


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

------------------------------------------------------------
revno: 428
revision-id:jelmer at samba.org-20080127010532-sqc4828o4pm2pi7f
parent: jelmer at samba.org-20080127005840-ku1n2v9ojqwtq2f7
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: bugstab
timestamp: Sun 2008-01-27 02:05:32 +0100
message:
  Always show bugs tab.
modified:
  revisionview.py                logview.py-20051024072750-4d5c28cb73611027
=== modified file 'revisionview.py'
--- a/revisionview.py	2008-01-27 00:58:40 +0000
+++ b/revisionview.py	2008-01-27 01:05:32 +0000
@@ -208,14 +208,12 @@
         else:
             self.file_info_box.hide()
 
+        self.bugs_table.clear()
         bugs_text = revision.properties.get('bugs', None)
         if bugs_text:
             for bugline in bugs_text.splitlines():
                 (url, status) = bugline.split(" ")
                 self.bugs_table.add_bug(url, status)
-            self.bugs_table.show_all()
-        else:
-            self.bugs_table.hide()
 
     def set_children(self, children):
         self._add_parents_or_children(children,
@@ -471,6 +469,7 @@
 
     def _create_bugs(self):
         self.bugs_table = BugsTab()
+        self.bugs_table.show_all()
         self.append_page(self.bugs_table, tab_label=gtk.Label('Bugs'))
 
     def _create_file_info_view(self):




More information about the bazaar-commits mailing list