/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: 2008-06-29 18:12:29 UTC
  • mto: This revision was merged to the branch mainline in revision 519.
  • Revision ID: jelmer@samba.org-20080629181229-1l2m4cf7vvbyh8qg
Simplify progress bar code, use embedded progress bar inside viz window.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import gtk
24
24
 
25
 
 
26
25
class IdentityPage(gtk.Table):
27
 
 
28
26
    def __init__(self, config):
29
27
        self.config = config
30
28
        gtk.Table.__init__(self, rows=4, columns=2)
31
 
        self.set_border_width(12)
32
29
        self.set_row_spacings(6)
33
30
        self.set_col_spacings(6)
34
31
 
35
 
        align = gtk.Alignment(0.0, 0.5)
 
32
        align = gtk.Alignment(1.0, 0.5)
36
33
        label = gtk.Label()
37
 
        label.set_markup("E-Mail:")
 
34
        label.set_markup("<b>User Id:</b>")
38
35
        align.add(label)
39
36
        self.attach(align, 0, 1, 0, 1, gtk.FILL, gtk.FILL)
40
37
 
42
39
        self.username.set_text(self.config.username())
43
40
        self.attach(self.username, 1, 2, 0, 1, gtk.EXPAND | gtk.FILL, gtk.FILL)
44
41
 
45
 
        align = gtk.Alignment(0.0, 0.5)
 
42
        align = gtk.Alignment(1.0, 0.5)
46
43
        label = gtk.Label()
47
 
        label.set_markup("GPG signing command:")
 
44
        label.set_markup("<b>GPG signing command:</b>")
48
45
        align.add(label)
49
46
        self.attach(align, 0, 1, 1, 2, gtk.FILL, gtk.FILL)
50
47
 
52
49
        self.email.set_text(self.config.gpg_signing_command())
53
50
        self.attach(self.email, 1, 2, 1, 2, gtk.EXPAND | gtk.FILL, gtk.FILL)
54
51
 
55
 
        align = gtk.Alignment(0.0, 0.1)
 
52
        align = gtk.Alignment(1.0, 0.5)
56
53
        label = gtk.Label()
57
 
        label.set_markup("Check GPG Signatures:")
 
54
        label.set_markup("<b>Check GPG Signatures:</b>")
58
55
        align.add(label)
59
56
        self.attach(align, 0, 1, 2, 3, gtk.FILL, gtk.FILL)
60
57
 
61
58
        sigvals = gtk.VBox()
62
 
        self.check_sigs_if_possible = gtk.RadioButton(None,
 
59
        self.check_sigs_if_possible = gtk.RadioButton(None, 
63
60
                                                      "_Check if possible")
64
61
        sigvals.pack_start(self.check_sigs_if_possible)
65
 
        self.check_sigs_always = gtk.RadioButton(self.check_sigs_if_possible,
 
62
        self.check_sigs_always = gtk.RadioButton(self.check_sigs_if_possible, 
66
63
                                                 "Check _always")
67
64
        sigvals.pack_start(self.check_sigs_always)
68
65
        self.check_sigs_never = gtk.RadioButton(self.check_sigs_if_possible,
71
68
        # FIXME: Set default
72
69
        self.attach(sigvals, 1, 2, 2, 3, gtk.EXPAND | gtk.FILL, gtk.FILL)
73
70
 
74
 
        align = gtk.Alignment(0.0, 0.1)
 
71
        align = gtk.Alignment(1.0, 0.5)
75
72
        label = gtk.Label()
76
 
        label.set_markup("Create GPG Signatures:")
 
73
        label.set_markup("<b>Create GPG Signatures:</b>")
77
74
        align.add(label)
78
75
        self.attach(align, 0, 1, 3, 4, gtk.FILL, gtk.FILL)
79
76
 
80
77
        create_sigs = gtk.VBox()
81
 
        self.create_sigs_when_required = gtk.RadioButton(None,
 
78
        self.create_sigs_when_required = gtk.RadioButton(None, 
82
79
                                                         "Sign When _Required")
83
80
        create_sigs.pack_start(self.create_sigs_when_required)
84
81
        self.create_sigs_always = gtk.RadioButton(