tomboy r2080 - in trunk: . Tomboy
- From: sschweiz svn gnome org
- To: svn-commits-list gnome org
- Subject: tomboy r2080 - in trunk: . Tomboy
- Date: Wed, 13 Aug 2008 19:02:31 +0000 (UTC)
Author: sschweiz
Date: Wed Aug 13 19:02:31 2008
New Revision: 2080
URL: http://svn.gnome.org/viewvc/tomboy?rev=2080&view=rev
Log:
* Tomboy/Watchers.cs: Reverted yesterday's spellchecking patch
  (the second, r2077) because of performance problems.
Modified:
   trunk/ChangeLog
   trunk/Tomboy/Watchers.cs
Modified: trunk/Tomboy/Watchers.cs
==============================================================================
--- trunk/Tomboy/Watchers.cs	(original)
+++ trunk/Tomboy/Watchers.cs	Wed Aug 13 19:02:31 2008
@@ -230,9 +230,6 @@
 		[DllImport ("libgtkspell")]
 		static extern void gtkspell_detach (IntPtr obj);
 
-		[DllImport ("libgtkspell")]
-		static extern void gtkspell_recheck_all (IntPtr obj);
-
 		static bool DetectGtkSpellAvailable()
 		{
 			try {
@@ -298,7 +295,6 @@
 			}
 
 			Buffer.TagApplied += TagApplied;
-			Buffer.TagRemoved += TagRemoved;
 
 			if (obj_ptr == IntPtr.Zero) {
 				obj_ptr = gtkspell_new_attach (Window.Editor.Handle,
@@ -309,7 +305,6 @@
 
 		void Detach ()
 		{
-			Buffer.TagRemoved -= TagRemoved;
 			Buffer.TagApplied -= TagApplied;
 
 			if (obj_ptr != IntPtr.Zero) {
@@ -353,14 +348,6 @@
 				                  args.EndChar);
 			}
 		}
-
-		void TagRemoved (object sender, Gtk.TagRemovedArgs args)
-		{
-			// Recheck when a tag is removed that prevented spell checking
-			if (!NoteTagTable.TagIsSpellCheckable (args.Tag) &&
-					obj_ptr != IntPtr.Zero)
-				gtkspell_recheck_all (obj_ptr);
-		}
 	}
 	#else
 	// Add in a "dummy" NoteSpellChecker class so that Mono.Addins doesn't
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]