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

  • Committer: Aaron Bentley
  • Date: 2008-01-14 04:20:46 UTC
  • Revision ID: aaron@aaronbentley.com-20080114042046-d690w1m6qkpnm6bv
Add ghandle-patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
681
681
register_command(cmd_test_gtk)
682
682
 
683
683
 
 
684
class cmd_ghandle_patch(GTKCommand):
 
685
 
 
686
    takes_args = ['path']
 
687
 
 
688
    def run(self, path):
 
689
        from bzrlib.plugins.gtk.diff import DiffWindow
 
690
        window = DiffWindow()
 
691
        window.set_diff_text(path, open(path, 'rb').read())
 
692
        window.show()
 
693
        gtk = self.open_display()
 
694
        window.connect("destroy", gtk.main_quit)
 
695
        gtk.main()
 
696
 
 
697
 
 
698
register_command(cmd_ghandle_patch)
 
699
 
 
700
 
684
701
import gettext
685
702
gettext.install('olive-gtk')
686
703