/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

  • Committer: Jelmer Vernooij
  • Date: 2009-04-21 22:00:10 UTC
  • mfrom: (625.1.6 trunk)
  • Revision ID: jelmer@samba.org-20090421220010-9ix3gjr3g68kwwlv
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import cgi
22
22
import dbus
23
23
import dbus.service
 
24
import gobject
24
25
import pynotify
25
26
from bzrlib.bzrdir import BzrDir
26
27
from bzrlib import errors
62
63
                        from bzrlib.plugins.gtk.branch import BranchDialog
63
64
                        bd = BranchDialog(remote_path=url)
64
65
                        bd.run()
65
 
                nw.add_action("inspect", "Inspect", start_viz, None)
66
 
                nw.add_action("branch", "Branch", start_branch, None)
 
66
                if "actions" in pynotify.get_server_caps():
 
67
                        nw.add_action("inspect", "Inspect", start_viz, None)
 
68
                        nw.add_action("branch", "Branch", start_branch, None)
67
69
                icon.set_visible(True)
68
70
                gobject.timeout_add(5000, hide_icon)
69
71
                nw.set_timeout(5000)