Ignore:
Timestamp:
03/04/12 09:35:01 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The status icon is now hidden properly when the program quits, and made restarting nicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/statusicon.py

    r35 r38  
    8383            self._showHideMenuItem.set_active(True)
    8484
     85    def destroy(self):
     86        """Hide and destroy the status icon."""
     87        if appIndicator:
     88            if pygobject:
     89                self._indicator.set_status(appindicator.IndicatorStatus.PASSIVE)
     90            else:
     91                self._indicator.set_status(appindicator.STATUS_PASSIVE)
     92        else:
     93            self._statusIcon.set_visible(False)
     94       
    8595    def _showHideToggled(self, menuitem):
    8696        """Called when the show/hide menu item is toggled."""
Note: See TracChangeset for help on using the changeset viewer.