~saurabhanandiit/gtg/exportFixed

« back to all changes in this revision

Viewing changes to GTG/gtk/backends_dialog/addpanel.py

  • Committer: Izidor Matušov
  • Date: 2012-02-29 10:06:41 UTC
  • mfrom: (1098 gtg)
  • mto: This revision was merged to the branch mainline in revision 1103.
  • Revision ID: izidor.matusov@gmail.com-20120229100641-q1uns4yqz1fem2z4
Merged with the current trunk & solved problems with offset

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        #Division of the available space in three segments:
55
55
        # top, middle and bottom.
56
56
        top = gtk.HBox()
 
57
        top.set_spacing(6)
57
58
        middle = gtk.HBox()
58
59
        bottom = gtk.HBox()
59
60
        self._fill_top_hbox(top)
62
63
        self.pack_start(top, False)
63
64
        self.pack_start(middle, True)
64
65
        self.pack_start(bottom, True)
 
66
        self.set_border_width(12)
65
67
 
66
68
    def _fill_top_hbox(self, hbox):
67
69
        '''
70
72
 
71
73
        @param hbox: the gtk.HBox to fill
72
74
        '''
73
 
        label = gtk.Label("Select a backend")
74
 
        label.set_size_request(-1, 30)
 
75
        label = gtk.Label(_("Select a backend:"))
 
76
        label.set_alignment(0, 0.5)
75
77
        self.combo_types = BackendsCombo(self.dialog)
76
78
        self.combo_types.child.connect('changed', self.on_combo_changed)
77
 
        hbox.pack_start(label, True, True)
 
79
        hbox.pack_start(label, False, True)
78
80
        hbox.pack_start(self.combo_types, False, True)
79
81
 
80
82
    def _fill_middle_hbox(self, hbox):