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

  • Committer: Jelmer Vernooij
  • Date: 2010-02-28 15:19:15 UTC
  • mfrom: (674.1.1 bzr-gtk)
  • Revision ID: jelmer@samba.org-20100228151915-bvwflj8ongj2fwqd
Merge qense's indicator application work, but don't require appindicator to be installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
 
37
37
class NotifyPopupMenu(gtk.Menu):
38
 
 
39
38
    def __init__(self):
40
39
        super(NotifyPopupMenu, self).__init__()
41
40
        self.create_items()
42
41
 
43
42
    def create_items(self):
44
 
        from bzrlib import errors
45
43
        item = gtk.CheckMenuItem('_Gateway to LAN')
46
44
        item.connect('toggled', self.toggle_lan_gateway)
47
45
        self.append(item)
51
49
            self.langateway = LanGateway()
52
50
        except ImportError:
53
51
            item.set_sensitive(False)
54
 
        except errors.BzrError:
55
 
            # FIXME: Should only catch errors that indicate a lan-notify 
56
 
            # process is already running.
57
 
            item.set_sensitive(False)
58
52
 
59
53
        item = gtk.CheckMenuItem('Announce _branches on LAN')
60
54
        item.connect('toggled', self.toggle_announce_branches)