Show
Ignore:
Timestamp:
11/16/07 20:46:56 (13 months ago)
Author:
asterix
Message:

fix single message behaviour

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.2/src/dialogs.py

    r8955 r8989  
    14821482        or 'receive'. 
    14831483        ''' 
     1484        # Keep a reference on windows so garbage collector don't restroy them 
     1485        instances = [] 
    14841486        def __init__(self, account, to = '', action = '', from_whom = '', 
    14851487        subject = '', message = '', resource = ''): 
     1488                self.instances.append(self) 
    14861489                self.account = account 
    14871490                self.action = action 
     
    15811584                                gajim.config.get('single-msg-height')) 
    15821585                self.window.show_all() 
     1586 
     1587        def on_single_message_window_destroy(self, widget): 
     1588                self.instances.remove(self) 
    15831589 
    15841590        def set_cursor_to_end(self):