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

  • Committer: Jelmer Vernooij
  • Date: 2011-12-20 16:47:38 UTC
  • Revision ID: jelmer@canonical.com-20111220164738-l6tgnbttkxmq6877
Cope with some strings being unicode when returned by some versions of gtk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        self._enable_per_file_commits = True
115
115
        self._commit_all_changes = True
116
116
        self.committed_revision_id = None # Nothing has been committed yet
117
 
        self._last_selected_file = None
118
117
        self._saved_commit_messages_manager = SavedCommitMessagesManager(
119
118
            self._wt, self._wt.branch)
120
119
 
568
567
 
569
568
    def _on_treeview_files_cursor_changed(self, treeview):
570
569
        treeselection = treeview.get_selection()
571
 
        if treeselection is None:
572
 
            # The treeview was probably destroyed as the dialog closes.
573
 
            return
574
570
        (model, selection) = treeselection.get_selected()
575
571
 
576
572
        if selection is not None: