/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 preferences/notifications.py

  • Committer: Martin Pool
  • Date: 2010-05-27 03:07:30 UTC
  • mfrom: (688.1.5 201956-help)
  • Revision ID: mbp@canonical.com-20100527030730-os0opv1xroetccm9
Make find/goto more discoverable

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import gtk
24
24
 
25
25
import bzrlib.plugins.gtk
26
 
from bzrlib.plugins.gtk.notify import (
27
 
    has_avahi,
28
 
    has_dbus,
29
 
    )
30
 
 
 
26
from bzrlib.plugins.gtk.notify import has_avahi, has_dbus
31
27
 
32
28
def has_email():
33
29
    return (getattr(bzrlib.plugins, "email", None) is not None)
37
33
 
38
34
 
39
35
class NotificationsPage(gtk.VBox):
40
 
 
41
36
    def __init__(self, config, homogeneous=False, spacing=6):
42
37
        self.config = config
43
38
        gtk.VBox.__init__(self, homogeneous=homogeneous, spacing=spacing)
44
39
        self.set_spacing(spacing) # The vertical one
45
 
 
 
40
        
46
41
        lan_frame = gtk.Frame("LAN Notifications")
47
42
 
48
43
        lan_vbox = gtk.VBox()
72
67
        self.pack_start(email_frame)
73
68
 
74
69
        cia_frame = gtk.Frame("CIA notifications")
75
 
 
 
70
        
76
71
        cia_user_hbox = gtk.HBox()
77
72
        cia_user_hbox.pack_start(gtk.Label("Author name"))
78
73
        self.cia_user = gtk.Entry()
79
74
        cia_user_hbox.pack_start(self.cia_user)
80
 
 
 
75
    
81
76
        cia_frame.add(cia_user_hbox)
82
77
        cia_frame.set_sensitive(has_cia())
83
78