~osomon/moovida/account_browser

« back to all changes in this revision

Viewing changes to elisa-plugins/elisa/plugins/pigment/widgets/widget.py

  • Committer: Olivier Tilloy
  • Date: 2009-08-31 15:18:08 UTC
  • Revision ID: olivier@fluendo.com-20090831151808-6he3vs560rmh2b4z
Unset the focus when cleaning.
This releases a reference and allows the garbage collector to delete the object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
662
662
            self._focus_proxy = None
663
663
 
664
664
    def clean(self):
 
665
        if Widget._focused is self:
 
666
            Widget._focused = None
665
667
        self._focus_proxy = None
666
668
        self.name = None
667
669
        self.style = None