/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 __init__.py

  • Committer: Robert Collins
  • Date: 2007-07-07 22:02:45 UTC
  • mto: This revision was merged to the branch mainline in revision 216.
  • Revision ID: robertc@robertcollins.net-20070707220245-rqbiv4nerkk7z9oc
Add a Branch button to commit-notify.

Show diffs side-by-side

added added

removed removed

Lines of Context:
528
528
                    """Start the viz program."""
529
529
                    pp = start_viz_window(branch, revision_id)
530
530
                    pp.show()
 
531
                def start_branch(notification=None, action=None, data=None):
 
532
                    """Start a Branch dialog"""
 
533
                    from bzrlib.plugins.gtk.branch import BranchDialog
 
534
                    bd = BranchDialog(remote_path=url)
 
535
                    bd.run()
531
536
                nw.add_action("clicked", "Inspect", start_viz, None)
 
537
                nw.add_action("clicked", "Branch", start_branch, None)
532
538
                nw.set_timeout(5000)
533
539
                nw.show()
534
540
            except Exception, e: