/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: 2008-10-29 08:36:29 UTC
  • mto: This revision was merged to the branch mainline in revision 620.
  • Revision ID: v.ladeuil+lp@free.fr-20081029083629-50ozsjwm5y2py5kg
Fix bug #290618 by using the right facilities.

* preferences/notifications.py:
(NotificationsPage): Slight cosmetic adjustments.

* notify.py: 
<cough> don't import plugins.dbus just before defining a function
to check for its presence :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Notification area icon and notification for Bazaar."""
18
18
 
19
19
import gtk
20
 
import bzrlib.plugins.dbus
 
20
import bzrlib
 
21
 
21
22
 
22
23
def has_dbus():
23
24
    return (getattr(bzrlib.plugins, "dbus", None) is not None)
24
25
 
 
26
 
25
27
def has_avahi():
26
28
    return (getattr(bzrlib.plugins, "avahi", None) is not None)
27
29
 
 
30
 
28
31
class NotifyPopupMenu(gtk.Menu):
29
32
    def __init__(self):
30
33
        super(NotifyPopupMenu, self).__init__()