Show
Ignore:
Timestamp:
12/05/06 19:45:02 (2 years ago)
Author:
nk
Message:

use the blinking when systray holds pending events [only new api/only in windows atm]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/statusicon.py

    r7440 r7609  
    2727        # leave, enter motion notify 
    2828        # and can't do cool tooltips we use 
    29         # and we could use blinking instead of unsupported animation 
    30         # or we could emulate animation by every foo ms chaning the image 
    3129        def __init__(self): 
    3230                systray.Systray.__init__(self) 
     
    5654                self.status_icon.set_tooltip(text) 
    5755                if gajim.events.get_nb_systray_events(): 
    58                         state = 'message' 
     56                        state = 'message' # FIXME: this state should be called event, not message 
     57                        self.status_icon.props.blinking = True 
    5958                else: 
    6059                        state = self.status 
     60                        self.status_icon.props.blinking = False 
     61                 
    6162                #FIXME: do not always use 16x16 (ask actually used size and use that) 
    6263                image = gajim.interface.roster.jabber_state_images['16'][state]