/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: John Arbash Meinel
  • Date: 2007-10-01 22:04:43 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-20071001220443-q4jqupexf5wx2sqa
Start checking the diff view is correct.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
        self._treeview_files.set_model(store)
232
232
 
233
233
    def _fill_in_diff(self):
234
 
        self._diff_label = gtk.Label(_('Diff for whole tree'))
 
234
        self._diff_label.set_text(_('Diff for whole tree'))
235
235
        self._diff_view.set_trees(self._wt, self._basis_tree)
236
236
        self._diff_view.show_diff(None)
237
237
 
454
454
        self._global_message_text_view.show()
455
455
 
456
456
    def _on_treeview_files_cursor_changed(self, treeview):
457
 
         treeselection = treeview.get_selection()
458
 
         (model, iter) = treeselection.get_selected()
 
457
        treeselection = treeview.get_selection()
 
458
        (model, iterable) = treeselection.get_selected()
459
459
 
460
 
         if iter is not None:
461
 
             selected = model.get_value(iter, 1) # Get the real_path attribute
462
 
             self._diff_view.show_diff([selected])
 
460
        if iterable is not None:
 
461
            path, display_path = model.get(iterable, 1, 3) # Get the real_path attribute
 
462
            self._diff_label.set_text(_('Diff for ') + display_path)
 
463
            self._diff_view.show_diff([path])
463
464
 
464
465
    @staticmethod
465
466
    def _rev_to_pending_info(rev):