/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 olive/menu.py

  • Committer: John Arbash Meinel
  • Date: 2007-10-12 18:10:24 UTC
  • mto: (322.1.1 trunk) (330.3.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: john@arbash-meinel.com-20071012181024-t332b4l0338y419t
Make use of the 'selected' parameter to CommitDialog.
Also update the Olive interfaces to properly use CommitDialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
        except NotBranchError, e:
289
289
            path = e.path
290
290
        
291
 
        commit = CommitDialog(wt, path, not branch, self.selected)
 
291
        if self.selected:
 
292
            selected = os.path.join(path, self.selected)
 
293
        else:
 
294
            selected = None
 
295
        commit = CommitDialog(wt=wt, selected=selected, parent=None)
292
296
        response = commit.run()
293
297
        if response != gtk.RESPONSE_NONE:
294
298
            commit.hide()