diff --git a/src/config.py b/src/config.py index 8588b4d3053606aa8fc3c620f0fef32a1da6ee58..50ac180f2f68203dd17254ba777a5647b73f923c 100644 --- a/src/config.py +++ b/src/config.py @@ -182,11 +182,14 @@ class Preferences_window: self.xml.get_widget('use_tabbed_chat_window_checkbutton').set_active(st) #use speller - if 'gtkspell' in globals(): - st = gajim.config.get('use_speller') - self.xml.get_widget('speller_checkbutton').set_active(st) + if os.name == 'nt': + self.xml.get_widget('speller_checkbutton').set_no_show_all(True) else: - self.xml.get_widget('speller_checkbutton').set_sensitive(False) + if 'gtkspell' in globals(): + st = gajim.config.get('use_speller') + self.xml.get_widget('speller_checkbutton').set_active(st) + else: + self.xml.get_widget('speller_checkbutton').set_sensitive(False) #Print time if gajim.config.get('print_time') == 'never': @@ -214,17 +217,17 @@ class Preferences_window: #Color for incomming messages colSt = gajim.config.get('inmsgcolor') - self.xml.get_widget('incoming_msg_colorbutton').set_color(\ + self.xml.get_widget('incoming_msg_colorbutton').set_color( gtk.gdk.color_parse(colSt)) #Color for outgoing messages colSt = gajim.config.get('outmsgcolor') - self.xml.get_widget('outgoing_msg_colorbutton').set_color(\ + self.xml.get_widget('outgoing_msg_colorbutton').set_color( gtk.gdk.color_parse(colSt)) #Color for status messages colSt = gajim.config.get('statusmsgcolor') - self.xml.get_widget('status_msg_colorbutton').set_color(\ + self.xml.get_widget('status_msg_colorbutton').set_color( gtk.gdk.color_parse(colSt)) # on new message diff --git a/src/gtkgui.glade b/src/gtkgui.glade index fbeb5fdd55a60a6909ef80521fd5e4db9879c921..fe86ec776ef0588c3fa783465bdba0508cfb0938 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -3661,7 +3661,6 @@ <child> <widget class="GtkCheckButton" id="speller_checkbutton"> - <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">_Highlight misspelled words</property> <property name="use_underline">True</property>