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

  • Committer: Jelmer Vernooij
  • Date: 2011-04-06 14:53:44 UTC
  • Revision ID: jelmer@samba.org-20110406145344-m6s0i7q7ssjwhmwq
Support use without gtk.Spinner, which is only available in pygtk >= 2.22.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import gtk
24
24
 
 
25
 
25
26
class IdentityPage(gtk.Table):
 
27
 
26
28
    def __init__(self, config):
27
29
        self.config = config
28
30
        gtk.Table.__init__(self, rows=4, columns=2)
57
59
        self.attach(align, 0, 1, 2, 3, gtk.FILL, gtk.FILL)
58
60
 
59
61
        sigvals = gtk.VBox()
60
 
        self.check_sigs_if_possible = gtk.RadioButton(None, 
 
62
        self.check_sigs_if_possible = gtk.RadioButton(None,
61
63
                                                      "_Check if possible")
62
64
        sigvals.pack_start(self.check_sigs_if_possible)
63
 
        self.check_sigs_always = gtk.RadioButton(self.check_sigs_if_possible, 
 
65
        self.check_sigs_always = gtk.RadioButton(self.check_sigs_if_possible,
64
66
                                                 "Check _always")
65
67
        sigvals.pack_start(self.check_sigs_always)
66
68
        self.check_sigs_never = gtk.RadioButton(self.check_sigs_if_possible,
76
78
        self.attach(align, 0, 1, 3, 4, gtk.FILL, gtk.FILL)
77
79
 
78
80
        create_sigs = gtk.VBox()
79
 
        self.create_sigs_when_required = gtk.RadioButton(None, 
 
81
        self.create_sigs_when_required = gtk.RadioButton(None,
80
82
                                                         "Sign When _Required")
81
83
        create_sigs.pack_start(self.create_sigs_when_required)
82
84
        self.create_sigs_always = gtk.RadioButton(