/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 commit/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2006-05-20 15:44:48 UTC
  • Revision ID: jelmer@samba.org-20060520154448-50db5f498daf84c8
Add GTK+ dialog for commit. Available as 'bzr gcommit'

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        if file_id is None:
52
52
            raise NotVersionedError(filename)
53
53
 
54
 
        dialog = GCommitDialog()
55
 
        dialog.connect("destroy", lambda w: gtk.main_quit())
 
54
        dialog = GCommitDialog(wt)
56
55
        dialog.set_title(path + " - Commit")
57
 
        dialog.show()
58
 
 
59
 
        gtk.main()
60
 
 
61
 
        Commit().commit(working_tree=wt,message=dialog.message,
 
56
        if dialog.run() != gtk.RESPONSE_CANCEL:
 
57
            Commit().commit(working_tree=wt,message=dialog.message,
62
58
                specific_files=dialog.specific_files)
63
59
 
64
60
register_command(cmd_gcommit)