/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to branchview/treeview.py

  • Committer: Jelmer Vernooij
  • Date: 2008-07-25 22:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 580.
  • Revision ID: jelmer@samba.org-20080725222354-6d8ws46ttf51ydz6
Avoid using explicit names for progress bar function arguments since they differ.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        gtk.VBox.__init__(self, spacing=0)
110
110
 
111
111
        loading_msg_widget = ProgressPanel()
112
 
        ui.ui_factory.set_nested_progress_bar_widget(loading_msg_widget.get_progress_bar)
 
112
        if getattr(ui.ui_factory, "set_nested_progress_bar_widget", None) is not None:
 
113
            ui.ui_factory.set_nested_progress_bar_widget(loading_msg_widget.get_progress_bar)
113
114
        self.pack_start(loading_msg_widget, expand=False, fill=True)
114
115
 
115
116
        self.scrolled_window = gtk.ScrolledWindow()
276
277
        """
277
278
 
278
279
        self.progress_bar = ui.ui_factory.nested_progress_bar()
279
 
        self.progress_bar.update(msg="Loading ancestry graph", total_cnt=5)
 
280
        self.progress_bar.update("Loading ancestry graph", 0, 5)
280
281
 
281
282
        try:
282
283
            if self.compact: