~ubuntu-branches/ubuntu/hardy/gnome-orca/hardy

« back to all changes in this revision

Viewing changes to src/orca/mag.py

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2007-07-10 21:54:54 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20070710215454-trky3o11pcc78qg4
Tags: 2.19.5-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
"""Manages the magnifier for orca.  [[[TODO: WDW - this is very very
21
21
early in development.  One might even say it is pre-prototype.]]]"""
22
22
 
23
 
__id__        = "$Id: mag.py 2076 2007-03-02 23:01:44Z wwalker $"
24
 
__version__   = "$Revision: 2076 $"
25
 
__date__      = "$Date: 2007-03-02 18:01:44 -0500 (Fri, 02 Mar 2007) $"
 
23
__id__        = "$Id: mag.py 2507 2007-06-27 19:01:05Z wwalker $"
 
24
__version__   = "$Revision: 2507 $"
 
25
__date__      = "$Date: 2007-06-27 15:01:05 -0400 (Wed, 27 Jun 2007) $"
26
26
__copyright__ = "Copyright (c) 2005-2007 Sun Microsystems Inc."
27
27
__license__   = "LGPL"
28
28
 
582
582
 
583
583
    atspi.Registry().deregisterEventListener(__onMouseEvent,"mouse:abs")
584
584
 
585
 
    _magnifier.clearAllZoomRegions()
586
 
    _magnifier.dispose()
 
585
    # Someone might have killed the magnifier on us.  They shouldn't
 
586
    # have done so, but we need to be able to recover if they did.
 
587
    # See http://bugzilla.gnome.org/show_bug.cgi?id=375396.
 
588
    #
 
589
    try:
 
590
        _magnifier.clearAllZoomRegions()
 
591
        _magnifier.dispose()
 
592
    except:
 
593
        debug.printException(debug.LEVEL_WARNING)
 
594
 
587
595
    _magnifier = None
588
596
 
589
597
    _initialized = False