/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: Edward Ari Bichetero
  • Date: 2011-02-24 09:49:08 UTC
  • mto: This revision was merged to the branch mainline in revision 715.
  • Revision ID: ebichete@yahoo.com-20110224094908-gm0b2phgcye3t32j
Stop crashes when bzr errors include markup-like text (that is not valid markup).

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import gtk
24
24
 
25
25
class IdentityPage(gtk.Table):
 
26
 
26
27
    def __init__(self, config):
27
28
        self.config = config
28
29
        gtk.Table.__init__(self, rows=4, columns=2)
 
30
        self.set_border_width(12)
29
31
        self.set_row_spacings(6)
30
32
        self.set_col_spacings(6)
31
33
 
32
 
        align = gtk.Alignment(1.0, 0.5)
 
34
        align = gtk.Alignment(0.0, 0.5)
33
35
        label = gtk.Label()
34
 
        label.set_markup("<b>User Id:</b>")
 
36
        label.set_markup("E-Mail:")
35
37
        align.add(label)
36
38
        self.attach(align, 0, 1, 0, 1, gtk.FILL, gtk.FILL)
37
39
 
39
41
        self.username.set_text(self.config.username())
40
42
        self.attach(self.username, 1, 2, 0, 1, gtk.EXPAND | gtk.FILL, gtk.FILL)
41
43
 
42
 
        align = gtk.Alignment(1.0, 0.5)
 
44
        align = gtk.Alignment(0.0, 0.5)
43
45
        label = gtk.Label()
44
 
        label.set_markup("<b>GPG signing command:</b>")
 
46
        label.set_markup("GPG signing command:")
45
47
        align.add(label)
46
48
        self.attach(align, 0, 1, 1, 2, gtk.FILL, gtk.FILL)
47
49
 
49
51
        self.email.set_text(self.config.gpg_signing_command())
50
52
        self.attach(self.email, 1, 2, 1, 2, gtk.EXPAND | gtk.FILL, gtk.FILL)
51
53
 
52
 
        align = gtk.Alignment(1.0, 0.5)
 
54
        align = gtk.Alignment(0.0, 0.1)
53
55
        label = gtk.Label()
54
 
        label.set_markup("<b>Check GPG Signatures:</b>")
 
56
        label.set_markup("Check GPG Signatures:")
55
57
        align.add(label)
56
58
        self.attach(align, 0, 1, 2, 3, gtk.FILL, gtk.FILL)
57
59
 
68
70
        # FIXME: Set default
69
71
        self.attach(sigvals, 1, 2, 2, 3, gtk.EXPAND | gtk.FILL, gtk.FILL)
70
72
 
71
 
        align = gtk.Alignment(1.0, 0.5)
 
73
        align = gtk.Alignment(0.0, 0.1)
72
74
        label = gtk.Label()
73
 
        label.set_markup("<b>Create GPG Signatures:</b>")
 
75
        label.set_markup("Create GPG Signatures:")
74
76
        align.add(label)
75
77
        self.attach(align, 0, 1, 3, 4, gtk.FILL, gtk.FILL)
76
78