/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 checkout.py

  • Committer: Curtis Hovey
  • Date: 2011-09-05 03:44:26 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110905034426-p98pxnay9rmzkr99
Fix the initializer for many classes.
Replace Gtk.Dialog.vbox with .get_content_area().

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
    def __init__(self, path=None, parent=None, remote_path=None):
35
35
        """ Initialize the Checkout dialog. """
36
 
        GObject.GObject.__init__(self, title="Checkout - Olive",
37
 
                                  parent=parent,
38
 
                                  flags=0,
39
 
                                  buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
 
36
        super(CheckoutDialog, self).__init__(
 
37
            title="Checkout - Olive", parent=parent, flags=0,
 
38
            buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
40
39
 
41
40
        # Get arguments
42
41
        self.path = path
85
84
        self._label_revision.set_alignment(0, 0.5)
86
85
        self._table.set_row_spacings(3)
87
86
        self._table.set_col_spacings(3)
88
 
        self.vbox.set_spacing(3)
 
87
        self.get_content_area().set_spacing(3)
89
88
        if self.path is not None:
90
89
            self._filechooser.set_filename(self.path)
91
90
        if remote_path is not None:
92
91
            self._combo.get_child().set_text(remote_path)
93
92
 
94
93
        # Pack some widgets
95
 
        self._hbox_revision.pack_start(self._entry_revision, True, True)
96
 
        self._hbox_revision.pack_start(self._button_revision, False, False)
97
 
        self.vbox.add(self._table)
98
 
        self.action_area.pack_end(self._button_checkout)
 
94
        self._hbox_revision.pack_start(self._entry_revision, True, True, 0)
 
95
        self._hbox_revision.pack_start(self._button_revision, False, False, 0)
 
96
        self.get_content_area().add(self._table)
 
97
        self.action_area.pack_end(self._button_checkout, False, False, 0)
99
98
 
100
99
        # Show the dialog
101
 
        self.vbox.show_all()
 
100
        self.get_content_area().show_all()
102
101
 
103
102
        # Build checkout history
104
103
        self._history = UrlHistory(GlobalConfig(), 'branch_history')