Changeset 8989

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

fix single message behaviour

Location:
branches/gajim_0.11.2
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.2/data/glade/single_message_window.glade

    r6265 r8989  
    2222  <signal name="key_press_event" handler="on_single_message_window_key_press_event" last_modification_time="Tue, 05 Jul 2005 22:02:15 GMT"/> 
    2323  <signal name="delete_event" handler="on_single_message_window_delete_event" last_modification_time="Mon, 17 Oct 2005 15:32:50 GMT"/> 
     24  <signal name="destroy" handler="on_single_message_window_destroy"/> 
    2425 
    2526  <child> 
     
    545546  </child> 
    546547</widget> 
    547  
    548548</glade-interface> 
  • 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):