/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-09-03 01:25:04 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110903012504-0jr4diz9033g5df2
Menu fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
 
19
from gi.repository import GObject
19
20
from gi.repository import Gtk
20
21
 
21
22
from bzrlib import (
35
36
 
36
37
    def __init__(self, path=None, parent=None, remote_path=None):
37
38
        """ 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))
 
39
        GObject.GObject.__init__(self, title="Branch - Olive",
 
40
                                  parent=parent,
 
41
                                  flags=0,
 
42
                                  buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
41
43
 
42
44
        # Get arguments
43
45
        self.path = path
83
85
        self._label_revision.set_alignment(0, 0.5)
84
86
        self._table.set_row_spacings(3)
85
87
        self._table.set_col_spacings(3)
86
 
        self.get_content_area().set_spacing(3)
 
88
        self.vbox.set_spacing(3)
87
89
        if remote_path is not None:
88
90
            self._remote_branch.set_url(remote_path)
89
91
        if self.path is not None:
90
92
            self._filechooser.set_filename(self.path)
91
93
 
92
94
        # 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)
 
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_branch)
97
99
 
98
100
        # Show the dialog
99
 
        self.get_content_area().show_all()
 
101
        self.vbox.show_all()
100
102
 
101
103
    def _get_last_revno(self):
102
104
        """ Get the revno of the last revision (if any). """