30
30
label = Gtk.Label()
31
31
label.set_markup("E-Mail:")
34
align, 0, 1, 0, 1, Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
33
self.attach(align, 0, 1, 0, 1, Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
36
35
self.username = Gtk.Entry()
37
36
self.username.set_text(self.config.username())
39
self.username, 1, 2, 0, 1,
40
Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL,
41
Gtk.AttachOptions.FILL)
37
self.attach(self.username, 1, 2, 0, 1, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
43
39
align = Gtk.Alignment.new(0.0, 0.5, 0.0, 0.0)
44
40
label = Gtk.Label()
45
41
label.set_markup("GPG signing command:")
48
align, 0, 1, 1, 2, Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
43
self.attach(align, 0, 1, 1, 2, Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
50
45
self.email = Gtk.Entry()
51
46
self.email.set_text(self.config.gpg_signing_command())
53
self.email, 1, 2, 1, 2,
54
Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL,
55
Gtk.AttachOptions.FILL)
47
self.attach(self.email, 1, 2, 1, 2, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
57
49
align = Gtk.Alignment.new(0.0, 0.1, 0.0, 0.0)
58
50
label = Gtk.Label()
59
51
label.set_markup("Check GPG Signatures:")
62
align, 0, 1, 2, 3, Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
53
self.attach(align, 0, 1, 2, 3, Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
64
55
sigvals = Gtk.VBox()
65
self.check_sigs_if_possible = Gtk.RadioButton.new_with_label(
66
None, "_Check if possible")
56
self.check_sigs_if_possible = Gtk.RadioButton(None,
67
58
sigvals.pack_start(self.check_sigs_if_possible, True, True, 0)
68
self.check_sigs_always = Gtk.RadioButton.new_with_label_from_widget(
69
self.check_sigs_if_possible, "Check _always")
59
self.check_sigs_always = Gtk.RadioButton(self.check_sigs_if_possible,
70
61
sigvals.pack_start(self.check_sigs_always, True, True, 0)
71
self.check_sigs_never = Gtk.RadioButton.new_with_label_from_widget(
72
self.check_sigs_if_possible, "Check _never")
62
self.check_sigs_never = Gtk.RadioButton(self.check_sigs_if_possible,
73
64
sigvals.pack_start(self.check_sigs_never, True, True, 0)
74
65
# FIXME: Set default
77
Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL,
78
Gtk.AttachOptions.FILL)
66
self.attach(sigvals, 1, 2, 2, 3, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
80
68
align = Gtk.Alignment.new(0.0, 0.1, 0.0, 0.0)
81
69
label = Gtk.Label()
82
70
label.set_markup("Create GPG Signatures:")
85
align, 0, 1, 3, 4, Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
72
self.attach(align, 0, 1, 3, 4, Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
87
74
create_sigs = Gtk.VBox()
88
self.create_sigs_when_required = Gtk.RadioButton.new_with_label(
89
None, "Sign When _Required")
75
self.create_sigs_when_required = Gtk.RadioButton(None,
76
"Sign When _Required")
90
77
create_sigs.pack_start(self.create_sigs_when_required, True, True, 0)
91
self.create_sigs_always = Gtk.RadioButton.new_with_label_from_widget(
78
self.create_sigs_always = Gtk.RadioButton(
92
79
self.create_sigs_when_required, "Sign _Always")
93
80
create_sigs.pack_start(self.create_sigs_always, True, True, 0)
94
self.create_sigs_never = Gtk.RadioButton.new_with_label_from_widget(
81
self.create_sigs_never = Gtk.RadioButton(
95
82
self.create_sigs_when_required, "Sign _Never")
96
83
create_sigs.pack_start(self.create_sigs_never, True, True, 0)
97
84
# FIXME: Set default
99
create_sigs, 1, 2, 3, 4,
100
Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL,
101
Gtk.AttachOptions.FILL)
85
self.attach(create_sigs, 1, 2, 3, 4, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)