/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 15:52:43 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110731155243-ln8istmxbryhb4pz
Mechanical changes made by pygi.convert.sh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
 
19
try:
 
20
    import pygtk
 
21
    pygtk.require("2.0")
 
22
except:
 
23
    pass
 
24
 
19
25
from gi.repository import Gtk
20
26
 
21
27
from bzrlib import (
35
41
 
36
42
    def __init__(self, path=None, parent=None, remote_path=None):
37
43
        """ 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))
 
44
        GObject.GObject.__init__(self, title="Branch - Olive",
 
45
                                  parent=parent,
 
46
                                  flags=0,
 
47
                                  buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
41
48
 
42
49
        # Get arguments
43
50
        self.path = path
83
90
        self._label_revision.set_alignment(0, 0.5)
84
91
        self._table.set_row_spacings(3)
85
92
        self._table.set_col_spacings(3)
86
 
        self.get_content_area().set_spacing(3)
 
93
        self.vbox.set_spacing(3)
87
94
        if remote_path is not None:
88
95
            self._remote_branch.set_url(remote_path)
89
96
        if self.path is not None:
90
97
            self._filechooser.set_filename(self.path)
91
98
 
92
99
        # 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)
 
100
        self._hbox_revision.pack_start(self._entry_revision, True, True)
 
101
        self._hbox_revision.pack_start(self._button_revision, False, False)
 
102
        self.vbox.add(self._table)
 
103
        self.action_area.pack_end(self._button_branch)
97
104
 
98
105
        # Show the dialog
99
 
        self.get_content_area().show_all()
 
106
        self.vbox.show_all()
100
107
 
101
108
    def _get_last_revno(self):
102
109
        """ Get the revno of the last revision (if any). """