~ubuntu-branches/ubuntu/quantal/lernid/quantal

« back to all changes in this revision

Viewing changes to lernid/widgets/Terminal.py

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Higginson
  • Date: 2010-07-31 08:42:13 UTC
  • Revision ID: james.westby@ubuntu.com-20100731084213-g9zh9tl2xnib586s
Tags: 0.7
* New upstream version, fixes bugs:
  (LP: #530119) - Don't block UI when downloading slides
  (LP: #500495) - Should support other IRC channel prefixes than '#'
  (LP: #510003) - Warnings in the terminal when closing Lernid
  (LP: #530115) - exit in terminal
  (LP: #514733) - Preload the default page in browser
  (LP: #503224) - Lernid opens too small
  (LP: #530810) - URLs in chat area should be clickable 
  (LP: #530821) - Add an xchat-type separator line for new text in
                  classroom
  (LP: #531492) - missing copy menu entries for browser widget
* debian/control, change section:
  (LP: #546968) - Inappropriately appears in Ubuntu Software Center
                  "Developer Tools" > "Python"

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
38
38
        self._terminal = vte.Terminal()
39
39
        self._terminal.fork_command()
 
40
        def refork(terminal):
 
41
            terminal.fork_command()
 
42
        self._terminal.connect('child-exited', refork)
 
43
        def paste(terminal, event):
 
44
            if not (event.state & gtk.gdk.CONTROL_MASK):
 
45
                return
 
46
            if event.keyval == ord('V'):
 
47
                self._terminal.paste_clipboard()
 
48
            return True
 
49
        self._terminal.add_events(gtk.gdk.KEY_RELEASE_MASK)
 
50
        self.connect('key-release-event', paste)
40
51
        scroll.add(self._terminal)
41
52
        self.add(scroll)