From f85af4f4cd0db19f1a94b79226c1ccf54497200d Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Sat, 4 Jun 2005 12:52:16 +0000
Subject: [PATCH] windows: speller_checkbutton not visible

---
 src/config.py    | 17 ++++++++++-------
 src/gtkgui.glade |  1 -
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/config.py b/src/config.py
index 8588b4d305..50ac180f2f 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 fbeb5fdd55..fe86ec776e 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>
-- 
GitLab