gtranslator r3667 - trunk/src



Author: icq
Date: Mon Sep 22 09:41:54 2008
New Revision: 3667
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3667&view=rev

Log:
2008-08-07  Ignacio Casal Quinteiro  <nacho resa gmail com>

	* view.c (gtranslator_view_enable_spellcheck),
	(gtranslator_view_set_search_text):
	Removed spellcheck library support and removed unnecessary notification.# Please enter the commit message for your changes.

Modified:
   trunk/src/ChangeLog
   trunk/src/view.c

Modified: trunk/src/view.c
==============================================================================
--- trunk/src/view.c	(original)
+++ trunk/src/view.c	Mon Sep 22 09:41:54 2008
@@ -41,18 +41,10 @@
 #include <gtksourceview/gtksourceiter.h>
 #include <gtksourceview/gtksourcebuffer.h>
 
-//#undef HAVE_GTKSPELL
 #ifdef HAVE_GTKSPELL
 #include <gtkspell/gtkspell.h>
 #endif
 
-#undef HAVE_SPELL_CHECK
-#ifdef HAVE_SPELL_CHECK
-#include <gtkspellcheck/client.h>
-#include <gtkspellcheck/manager.h>
-#include <gtkspellcheck/textviewclient.h>
-#endif
-
 #define GTR_VIEW_GET_PRIVATE(object)	(G_TYPE_INSTANCE_GET_PRIVATE ( \
 						 	(object),	\
 						 	GTR_TYPE_VIEW,     \
@@ -70,11 +62,6 @@
 #ifdef HAVE_GTKSPELL
 	GtkSpell *spell;
 #endif
-	
-#ifdef HAVE_SPELL_CHECK
-	GtkSpellCheckClient *client;
-	GtkSpellCheckManager *manager;
-#endif
 };
 
 
@@ -101,19 +88,6 @@
 	}
 }
 #endif
-
-#ifdef HAVE_SPELL_CHECK
-static void
-gtranslator_attach_spellcheck(GtranslatorView *view)
-{
-	view->priv->client = GTK_SPELL_CHECK_CLIENT(gtk_spell_check_text_view_client_new(GTK_TEXT_VIEW(view)));
-	view->priv->manager = gtk_spell_check_manager_new(NULL, TRUE);
-	
-	gtk_spell_check_manager_attach(view->priv->manager,
-				       view->priv->client);
-}
-#endif
-
 	       
 static void
 gtranslator_view_init (GtranslatorView *view)
@@ -266,13 +240,6 @@
 #ifdef HAVE_GTKSPELL
 		gtranslator_attach_gtkspell(view);
 #endif
-#ifdef HAVE_SPELL_CHECK
-		if(!view->priv->manager)
-			gtranslator_attach_spellcheck(view);
-		else
-			gtk_spell_check_manager_set_active(view->priv->manager,
-							   TRUE);
-#endif
 	}
 	else
 	{
@@ -281,12 +248,6 @@
 			return;
 		gtkspell_detach(view->priv->spell);
 #endif
-#ifdef HAVE_SPELL_CHECK
-		if(!view->priv->manager)
-			return;
-		gtk_spell_check_manager_set_active(view->priv->manager,
-						   FALSE);
-#endif
 	}
 }
 
@@ -509,9 +470,6 @@
 					&begin,
 					&end);
 	}*/
-	
-	if (notify)
-		g_object_notify (G_OBJECT (doc), "can-search-again");
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]