~ubuntu-branches/ubuntu/oneiric/gedit-plugins/oneiric-201108032011

« back to all changes in this revision

Viewing changes to plugins/bracketcompletion/bracketcompletion.py

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2008-12-08 19:14:58 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20081208191458-6z6bilhfmi2yltdm
Tags: 2.25.1-0ubuntu1
* New upstream release. (LP: #306374)
 - Use vte api to set cursor shape and blink mode in 
   terminal (Paolo Borelli)
 - Ported to GIO and gtkbuilder (Ignacio Casal Quinteiro)
 - New implementation of drawspaces plugin (Paolo Borelli, 
   Ignacio Casal Quinteiro)
 - Misc bugfixes.
* debian/control:
 - Bump Build-depends for libgtk2.0-dev to (>= 2.13.0),
   libgtksourceview2.0-dev to (>= 2.4.0), gedit-dev to 
   (>= 2.24.0), and python-gtk2-dev to (>= 2.12.0)
 - Drop deprecated Build-depends on libglade2-dev and 
   libgnomevfs2-dev
 - Make gconf2 Build-depend versionized on (>= 1.1.11)
 - Bump Depends for python-gobject to (>= 2.15.4), python-gtk2 
   to (>= 2.12.0), python-gtksourceview2 to (>= 2.2.0), and 
   gedit to (>= 2.24.0)

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
        removed_hid = window.connect("tab-removed",
237
237
                                     lambda w, t: self.remove_helper(t.get_view()))
238
238
        window.set_data(self.WINDOW_DATA_KEY, (added_hid, removed_hid))
239
 
    
 
239
 
240
240
    def deactivate(self, window):
241
241
        handlers = window.get_data(self.WINDOW_DATA_KEY)
242
242
        for handler_id in handlers:
243
 
            window.disconnect(handler)
 
243
            window.disconnect(handler_id)
244
244
        window.set_data(self.WINDOW_DATA_KEY, None)
245
 
        
 
245
 
246
246
        for view in window.get_views():
247
247
            self.remove_helper(view)
248
248