/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: Curtis Hovey
  • Date: 2011-08-13 02:44:14 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110813024414-2jhxbw4qkt7h3zjf
Updated gpreferences to gtk3.
Lots of gtk_widget_size_allocate() that need future investigation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
    def __init__(self, config):
23
23
        self.config = config
24
 
        GObject.GObject.__init__(self, rows=4, columns=2)
 
24
        Gtk.Table.__init__(self, rows=4, columns=2)
25
25
        self.set_border_width(12)
26
26
        self.set_row_spacings(6)
27
27
        self.set_col_spacings(6)
28
28
 
29
 
        align = Gtk.Alignment.new(0.0, 0.5)
 
29
        align = Gtk.Alignment.new(0.0, 0.5, 0.0, 0.0)
30
30
        label = Gtk.Label()
31
31
        label.set_markup("E-Mail:")
32
32
        align.add(label)
36
36
        self.username.set_text(self.config.username())
37
37
        self.attach(self.username, 1, 2, 0, 1, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
38
38
 
39
 
        align = Gtk.Alignment.new(0.0, 0.5)
 
39
        align = Gtk.Alignment.new(0.0, 0.5, 0.0, 0.0)
40
40
        label = Gtk.Label()
41
41
        label.set_markup("GPG signing command:")
42
42
        align.add(label)
46
46
        self.email.set_text(self.config.gpg_signing_command())
47
47
        self.attach(self.email, 1, 2, 1, 2, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
48
48
 
49
 
        align = Gtk.Alignment.new(0.0, 0.1)
 
49
        align = Gtk.Alignment.new(0.0, 0.1, 0.0, 0.0)
50
50
        label = Gtk.Label()
51
51
        label.set_markup("Check GPG Signatures:")
52
52
        align.add(label)
65
65
        # FIXME: Set default
66
66
        self.attach(sigvals, 1, 2, 2, 3, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
67
67
 
68
 
        align = Gtk.Alignment.new(0.0, 0.1)
 
68
        align = Gtk.Alignment.new(0.0, 0.1, 0.0, 0.0)
69
69
        label = Gtk.Label()
70
70
        label.set_markup("Create GPG Signatures:")
71
71
        align.add(label)