[Goodies-commits] r7733 - in xfce4-dict/trunk: . lib

Enrico Troeger enrico at xfce.org
Thu Jul 16 17:03:00 CEST 2009


Author: enrico
Date: 2009-07-16 15:02:59 +0000 (Thu, 16 Jul 2009)
New Revision: 7733

Modified:
   xfce4-dict/trunk/ChangeLog
   xfce4-dict/trunk/lib/spell.c
Log:
Don't print the spell check header if in quiet mode and the word is spelled correctly.

Modified: xfce4-dict/trunk/ChangeLog
===================================================================
--- xfce4-dict/trunk/ChangeLog	2009-07-16 14:41:23 UTC (rev 7732)
+++ xfce4-dict/trunk/ChangeLog	2009-07-16 15:02:59 UTC (rev 7733)
@@ -1,3 +1,10 @@
+2009-07-16  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * lib/spell.c:
+   Don't print the spell check header if in quiet mode and the word
+   is spelled correctly.
+
+
 2009-07-09  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * lib/common.c, lib/common.h, lib/speedreader.c:

Modified: xfce4-dict/trunk/lib/spell.c
===================================================================
--- xfce4-dict/trunk/lib/spell.c	2009-07-16 14:41:23 UTC (rev 7732)
+++ xfce4-dict/trunk/lib/spell.c	2009-07-16 15:02:59 UTC (rev 7733)
@@ -89,14 +89,14 @@
 
 		while (g_io_channel_read_line(ioc, &msg, NULL, NULL, NULL) && msg != NULL)
 		{
-			print_header(iod);
-
 			if (msg[0] == '&')
 			{	/* & cmd 17 7: ... */
 				gint count;
 				tmp = strchr(msg + 2, ' ') + 1;
 				count = atoi(tmp);
 
+				print_header(iod);
+
 				if (! iod->quiet)
 					dict_gui_status_add(dd, ngettext("%d suggestion found.",
 													 "%d suggestions found.",
@@ -116,6 +116,8 @@
 			}
 			else if (msg[0] == '*' && ! iod->quiet)
 			{
+				print_header(iod);
+
 				gtk_text_buffer_insert(dd->main_textbuffer, &dd->textiter, "\n", 1);
 				tmp = g_strdup_printf(_("\"%s\" is spelled correctly (%s)."),
 					iod->word, dd->spell_dictionary);
@@ -126,6 +128,8 @@
 			}
 			else if (msg[0] == '#' && ! iod->quiet)
 			{
+				print_header(iod);
+
 				gtk_text_buffer_insert(dd->main_textbuffer, &dd->textiter, "\n", 1);
 				tmp = g_strdup_printf(_("No suggestions could be found for \"%s\" (%s)."),
 					iod->word, dd->spell_dictionary);




More information about the Goodies-commits mailing list