Changeset 994 for trunk/plugins

Show
Ignore:
Timestamp:
04/03/05 11:21:26 (4 years ago)
Author:
asterix
Message:

show the correct icon when we activate systray icon
reorder functions so that they are in the order in which they appear in the window

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/gtkgui/config.py

    r990 r994  
    4848                self.notebook.set_current_page(0) 
    4949 
    50         def on_before_time_entry_focus_out_event(self, widget, event): 
    51                 self.plugin.config['before_time'] = widget.get_text() 
    52          
    53         def on_after_time_entry_focus_out_event(self, widget, event): 
    54                 self.plugin.config['after_time'] = widget.get_text() 
    55  
    56         def on_before_nickname_entry_focus_out_event(self, widget, event): 
    57                 self.plugin.config['before_nickname'] = widget.get_text() 
    58  
    59         def on_after_nickname_entry_focus_out_event(self, widget, event): 
    60                 self.plugin.config['after_nickname'] = widget.get_text() 
    61  
    6250        def on_tray_icon_checkbutton_toggled(self, widget): 
    6351                if widget.get_active(): 
    6452                        self.plugin.config['trayicon'] = 1 
    6553                        self.plugin.show_systray() 
     54                        self.plugin.roster.update_status_comboxbox() 
    6655                else: 
    6756                        self.plugin.config['trayicon'] = 0 
     
    242231#                                               get_widget('message_textview').set_buffer(buf2[acct][jid]) 
    243232         
     233        def update_print_time(self): 
     234                """Update time in Opened Chat Windows""" 
     235                for a in self.plugin.accounts.keys(): 
     236                        if self.plugin.windows[a]['chats'].has_key('tabbed'): 
     237                                self.plugin.windows[a]['chats']['tabbed'].update_print_time() 
     238                        else: 
     239                                for jid in self.plugin.windows[a]['chats'].keys(): 
     240                                        self.plugin.windows[a]['chats'][jid].update_print_time() 
     241         
     242        def on_time_never_radiobutton_toggled(self, widget): 
     243                if widget.get_active(): 
     244                        self.plugin.config['print_time'] = 'never' 
     245                self.update_print_time() 
     246 
     247        def on_time_sometimes_radiobutton_toggled(self, widget): 
     248                if widget.get_active(): 
     249                        self.plugin.config['print_time'] = 'sometimes' 
     250                self.update_print_time() 
     251 
     252        def on_time_always_radiobutton_toggled(self, widget): 
     253                if widget.get_active(): 
     254                        self.plugin.config['print_time'] = 'always' 
     255                self.update_print_time() 
     256 
     257        def on_before_time_entry_focus_out_event(self, widget, event): 
     258                self.plugin.config['before_time'] = widget.get_text() 
     259         
     260        def on_after_time_entry_focus_out_event(self, widget, event): 
     261                self.plugin.config['after_time'] = widget.get_text() 
     262 
     263        def on_before_nickname_entry_focus_out_event(self, widget, event): 
     264                self.plugin.config['before_nickname'] = widget.get_text() 
     265 
     266        def on_after_nickname_entry_focus_out_event(self, widget, event): 
     267                self.plugin.config['after_nickname'] = widget.get_text() 
     268 
    244269        def update_text_tags(self): 
    245270                """Update color tags in Opened Chat Windows""" 
     
    250275                                for jid in self.plugin.windows[a]['chats'].keys(): 
    251276                                        self.plugin.windows[a]['chats'][jid].update_tags() 
    252          
    253         def update_print_time(self): 
    254                 """Update time in Opened Chat Windows""" 
    255                 for a in self.plugin.accounts.keys(): 
    256                         if self.plugin.windows[a]['chats'].has_key('tabbed'): 
    257                                 self.plugin.windows[a]['chats']['tabbed'].update_print_time() 
    258                         else: 
    259                                 for jid in self.plugin.windows[a]['chats'].keys(): 
    260                                         self.plugin.windows[a]['chats'][jid].update_print_time() 
    261277         
    262278        def on_incoming_msg_colorbutton_color_set(self, widget): 
     
    296312                        gtk.gdk.color_parse(defaults['statusmsgcolor']))                 
    297313                self.update_text_tags() 
    298  
    299         def on_time_never_radiobutton_toggled(self, widget): 
    300                 if widget.get_active(): 
    301                         self.plugin.config['print_time'] = 'never' 
    302                 self.update_print_time() 
    303  
    304         def on_time_sometimes_radiobutton_toggled(self, widget): 
    305                 if widget.get_active(): 
    306                         self.plugin.config['print_time'] = 'sometimes' 
    307                 self.update_print_time() 
    308  
    309         def on_time_always_radiobutton_toggled(self, widget): 
    310                 if widget.get_active(): 
    311                         self.plugin.config['print_time'] = 'always' 
    312                 self.update_print_time() 
    313314 
    314315        def on_use_emoticons_checkbutton_toggled(self, widget):