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

  • Committer: Curtis Hovey
  • Date: 2012-03-05 03:20:12 UTC
  • mfrom: (776.3.18 gpush)
  • Revision ID: sinzui.is@verizon.net-20120305032012-ex7cchd3a0qxfvn5
Merged gpush UI update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
class PushDialog(Gtk.Dialog):
39
39
    """New implementation of the Push dialog."""
40
40
 
41
 
    def __init__(self, repository=None, revid=None, branch=None, parent=None):
 
41
    def __init__(self, repository, revid, branch=None, parent=None):
42
42
        """Initialize the Push dialog. """
43
43
        super(PushDialog, self).__init__(
44
44
            title="Push", parent=parent, flags=0, border_width=6,
45
45
            buttons=(Gtk.STOCK_CLOSE, Gtk.ResponseType.CLOSE))
46
 
        if repository is None:
47
 
            repository = branch.repository
48
46
        self.branch = branch
49
47
 
50
48
        # Unused arguments
51
49
        self.repository = repository
52
 
        if revid is None:
53
 
            revid = branch.last_revision()
54
50
        self.revid = revid
55
51
 
56
52
        # Create the widgets