Hi, for sure, here is the patch to solve the blinking cursor issue in
the 1.9.4 version.

For that dark green problem, already since version 1.9.4 the user is
able to manage colors through configuration of his
$HOME/.config/klavaro/preferences.ini file. See details with  'man
klavaro', or in the README file, ok?

Kind regards,
Felipe Castro.
diff -b -B -u -r klavaro-1.9.4/src/cursor.c klavaro-1.9.5/src/cursor.c
--- klavaro-1.9.4/src/cursor.c	2011-07-03 12:30:30.000000000 -0300
+++ klavaro-1.9.5/src/cursor.c	2012-06-02 21:15:47.000000000 -0300
@@ -222,9 +222,9 @@
 	gtk_text_buffer_get_iter_at_mark (buf, &end, gtk_text_buffer_get_insert (buf));
 	gtk_text_iter_forward_char (&end);
 	if (tutor_get_correcting ())
-		gtk_text_buffer_apply_tag_by_name (buf, "cursor_blink", &start, &end);
-	else
 		gtk_text_buffer_remove_tag_by_name (buf, "cursor_blink", &start, &end);
+	else
+		gtk_text_buffer_apply_tag_by_name (buf, "cursor_blink", &start, &end);
 }
 
 /**********************************************************************
@@ -245,7 +245,7 @@
 	gtk_text_buffer_get_iter_at_mark (buf, &end, gtk_text_buffer_get_insert (buf));
 	gtk_text_iter_forward_char (&end);
 	if (tutor_get_correcting ())
-		gtk_text_buffer_remove_tag_by_name (buf, "cursor_blink", &start, &end);
-	else
 		gtk_text_buffer_apply_tag_by_name (buf, "cursor_blink", &start, &end);
+	else
+		gtk_text_buffer_remove_tag_by_name (buf, "cursor_blink", &start, &end);
 }
diff -b -B -u -r klavaro-1.9.4/src/tutor.c klavaro-1.9.5/src/tutor.c
--- klavaro-1.9.4/src/tutor.c	2011-12-23 22:35:08.000000000 -0200
+++ klavaro-1.9.5/src/tutor.c	2012-06-02 21:24:36.000000000 -0300
@@ -574,21 +575,23 @@
 	}
 	else
 	{
-		cursor_on (NULL);
-
 		switch (tutor.type)
 		{
 		case TT_BASIC:
+			cursor_on (NULL);
 			hints_update_from_char (cursor_get_char ());
 			tutor_speak_char ();
 			return;
 		case TT_ADAPT:
+			cursor_on (NULL);
 			tutor_speak_char ();
 			return;
 		case TT_VELO:
+			cursor_on (NULL);
 			tutor_speak_word ();
 			return;
 		case TT_FLUID:
+			cursor_off (NULL);
 			return;
 		}
 	}

Reply via email to