Commits

Anonymous committed b5fc8ce

hggtk/hgemail: align labels of envelope fields

Comments (0)

Files changed (1)

         hbox = gtk.HBox()
         self._tolist = gtk.ListStore(str)
         self._tobox = gtk.ComboBoxEntry(self._tolist, 0)
-        hbox.pack_start(gtk.Label('To:'), False, False, 4)
+        lbl = gtk.Label('To:')
+        lbl.set_property("width-chars", 5)
+        lbl.set_alignment(1.0, 0.5)
+        hbox.pack_start(lbl, False, False, 4)
         hbox.pack_start(self._tobox, True, True, 4)
         vbox.pack_start(hbox, False, False, 4)
 
         hbox = gtk.HBox()
         self._cclist = gtk.ListStore(str)
         self._ccbox = gtk.ComboBoxEntry(self._cclist, 0)
-        hbox.pack_start(gtk.Label('Cc:'), False, False, 4)
+        lbl = gtk.Label('Cc:')
+        lbl.set_property("width-chars", 5)
+        lbl.set_alignment(1.0, 0.5)
+        hbox.pack_start(lbl, False, False, 4)
         hbox.pack_start(self._ccbox, True, True, 4)
         vbox.pack_start(hbox, False, False, 4)
 
         hbox = gtk.HBox()
         self._fromlist = gtk.ListStore(str)
         self._frombox = gtk.ComboBoxEntry(self._fromlist, 0)
-        hbox.pack_start(gtk.Label('From:'), False, False, 4)
+        lbl = gtk.Label('From:')
+        lbl.set_property("width-chars", 5)
+        lbl.set_alignment(1.0, 0.5)
+        hbox.pack_start(lbl, False, False, 4)
         hbox.pack_start(self._frombox, True, True, 4)
         vbox.pack_start(hbox, False, False, 4)