Changeset 994 for trunk/plugins
- Timestamp:
- 04/03/05 11:21:26 (4 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/gtkgui/config.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/gtkgui/config.py
r990 r994 48 48 self.notebook.set_current_page(0) 49 49 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 62 50 def on_tray_icon_checkbutton_toggled(self, widget): 63 51 if widget.get_active(): 64 52 self.plugin.config['trayicon'] = 1 65 53 self.plugin.show_systray() 54 self.plugin.roster.update_status_comboxbox() 66 55 else: 67 56 self.plugin.config['trayicon'] = 0 … … 242 231 # get_widget('message_textview').set_buffer(buf2[acct][jid]) 243 232 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 244 269 def update_text_tags(self): 245 270 """Update color tags in Opened Chat Windows""" … … 250 275 for jid in self.plugin.windows[a]['chats'].keys(): 251 276 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()261 277 262 278 def on_incoming_msg_colorbutton_color_set(self, widget): … … 296 312 gtk.gdk.color_parse(defaults['statusmsgcolor'])) 297 313 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()313 314 314 315 def on_use_emoticons_checkbutton_toggled(self, widget):
