/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: Gustav Hartvigsson
  • Date: 2014-11-25 15:34:07 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20141125153407-827k8g7qy9u5byd5
* Fixed bzr-gtk's viz util, using the new Gtk Inspector.

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
 
        GObject.GObject.__init__(self, title="Branch - Olive",
39
 
                                  parent=parent,
40
 
                                  flags=0,
41
 
                                  buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
 
38
        super(BranchDialog, self).__init__(
 
39
            title="Branch - Olive", parent=parent, flags=0,
 
40
            buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
42
41
 
43
42
        # Get arguments
44
43
        self.path = path
84
83
        self._label_revision.set_alignment(0, 0.5)
85
84
        self._table.set_row_spacings(3)
86
85
        self._table.set_col_spacings(3)
87
 
        self.vbox.set_spacing(3)
 
86
        self.get_content_area().set_spacing(3)
88
87
        if remote_path is not None:
89
88
            self._remote_branch.set_url(remote_path)
90
89
        if self.path is not None:
91
90
            self._filechooser.set_filename(self.path)
92
91
 
93
92
        # Pack some widgets
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)
 
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)
98
97
 
99
98
        # Show the dialog
100
 
        self.vbox.show_all()
 
99
        self.get_content_area().show_all()
101
100
 
102
101
    def _get_last_revno(self):
103
102
        """ Get the revno of the last revision (if any). """