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

  • Committer: Curtis Hovey
  • Date: 2011-07-31 16:50:29 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110731165029-9gixuqypi3lwapzm
Removed import_pygtk because gi does not impicitly call Main(). Inlined checks for gtk availablility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
    def __init__(self, path=None, parent=None, remote_path=None):
37
37
        """ Initialize the Branch dialog. """
38
 
        super(BranchDialog, self).__init__(
39
 
            title="Branch - Olive", parent=parent, flags=0,
40
 
            buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
 
38
        GObject.GObject.__init__(self, title="Branch - Olive",
 
39
                                  parent=parent,
 
40
                                  flags=0,
 
41
                                  buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
41
42
 
42
43
        # Get arguments
43
44
        self.path = path
83
84
        self._label_revision.set_alignment(0, 0.5)
84
85
        self._table.set_row_spacings(3)
85
86
        self._table.set_col_spacings(3)
86
 
        self.get_content_area().set_spacing(3)
 
87
        self.vbox.set_spacing(3)
87
88
        if remote_path is not None:
88
89
            self._remote_branch.set_url(remote_path)
89
90
        if self.path is not None:
90
91
            self._filechooser.set_filename(self.path)
91
92
 
92
93
        # Pack some widgets
93
 
        self._hbox_revision.pack_start(self._entry_revision, True, True, 0)
94
 
        self._hbox_revision.pack_start(self._button_revision, False, False, 0)
95
 
        self.get_content_area().add(self._table)
96
 
        self.action_area.pack_end(self._button_branch, False, False, 0)
 
94
        self._hbox_revision.pack_start(self._entry_revision, True, True)
 
95
        self._hbox_revision.pack_start(self._button_revision, False, False)
 
96
        self.vbox.add(self._table)
 
97
        self.action_area.pack_end(self._button_branch)
97
98
 
98
99
        # Show the dialog
99
 
        self.get_content_area().show_all()
 
100
        self.vbox.show_all()
100
101
 
101
102
    def _get_last_revno(self):
102
103
        """ Get the revno of the last revision (if any). """