/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 bzr-notify

Don't use actions in the notifications if the server doesn't support them. (Mark Shuttleworth)

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                        from bzrlib.plugins.gtk.branch import BranchDialog
63
63
                        bd = BranchDialog(remote_path=url)
64
64
                        bd.run()
65
 
                nw.add_action("inspect", "Inspect", start_viz, None)
66
 
                nw.add_action("branch", "Branch", start_branch, None)
 
65
                if "actions" in pynotify.get_server_caps():
 
66
                        nw.add_action("inspect", "Inspect", start_viz, None)
 
67
                        nw.add_action("branch", "Branch", start_branch, None)
67
68
                icon.set_visible(True)
68
69
                gobject.timeout_add(5000, hide_icon)
69
70
                nw.set_timeout(5000)