From 14b8d03a565862c35dde4189d6c93e722f4d4a92 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 26 May 2005 00:29:22 +0000 Subject: [PATCH] globals() not locals() --- src/chat.py | 2 +- src/config.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/chat.py b/src/chat.py index 76bd009e9..2cc944a4f 100644 --- a/src/chat.py +++ b/src/chat.py @@ -230,7 +230,7 @@ class Chat: self.nb_unread[jid] = 0 self.last_message_time[jid] = 0 - if gajim.config.get('use_speller') and 'gtkspell' in locals(): + if gajim.config.get('use_speller') and 'gtkspell' in globals(): message_textview = self.xmls[jid].get_widget('message_textview') gtkspell.Spell(message_textview) diff --git a/src/config.py b/src/config.py index d582beff1..4872548c1 100644 --- a/src/config.py +++ b/src/config.py @@ -179,7 +179,7 @@ class Preferences_window: self.xml.get_widget('use_tabbed_chat_window_checkbutton').set_active(st) #use speller - if 'gtkspell' in locals(): + if 'gtkspell' in globals(): st = gajim.config.get('use_speller') self.xml.get_widget('speller_checkbutton').set_active(st) else: @@ -609,7 +609,8 @@ class Preferences_window: windows = self.plugin.windows[acct][kind] jids = windows.keys() for jid in jids: - print jid + if jid == 'tabbed': + continue window = windows[jid] textview = window.xmls[jid].get_widget('message_textview') gtkspell.Spell(textview) @@ -619,6 +620,8 @@ class Preferences_window: windows = self.plugin.windows[acct][kind] jids = windows.keys() for jid in jids: + if jid == 'tabbed': + continue window = windows[jid] textview = window.xmls[jid].get_widget('message_textview') spell_obj = gtkspell.get_from_text_view(textview)