/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: Vincent Ladeuil
  • Date: 2009-05-06 11:51:38 UTC
  • mfrom: (628.1.2 gtk)
  • Revision ID: v.ladeuil+lp@free.fr-20090506115138-7abxvg2qz4gzraup
UpgradeĀ COMPATIBLE_BZR_VERSIONS

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
"""Notification area icon and notification for Bazaar."""
18
18
 
19
 
try:
20
 
    import pygtk
21
 
    pygtk.require("2.0")
22
 
except:
23
 
    pass
24
 
 
25
19
import gtk
26
20
import bzrlib
27
21
 
40
34
        self.create_items()
41
35
 
42
36
    def create_items(self):
43
 
        from bzrlib import errors
44
37
        item = gtk.CheckMenuItem('_Gateway to LAN')
45
38
        item.connect('toggled', self.toggle_lan_gateway)
46
39
        self.append(item)
50
43
            self.langateway = LanGateway()
51
44
        except ImportError:
52
45
            item.set_sensitive(False)
53
 
        except errors.BzrError:
54
 
            # FIXME: Should only catch errors that indicate a lan-notify 
55
 
            # process is already running.
56
 
            item.set_sensitive(False)
57
46
 
58
47
        item = gtk.CheckMenuItem('Announce _branches on LAN')
59
48
        item.connect('toggled', self.toggle_announce_branches)