[Goodies-commits] r4625 - xfce4-dict/trunk/lib

Enrico Troeger enrico at xfce.org
Fri Apr 18 18:07:15 CEST 2008


Author: enrico
Date: 2008-04-18 16:07:15 +0000 (Fri, 18 Apr 2008)
New Revision: 4625

Modified:
   xfce4-dict/trunk/lib/dictd.c
Log:
Show no results message for Dictd searches in the text view to be consistent with aspell search.


Modified: xfce4-dict/trunk/lib/dictd.c
===================================================================
--- xfce4-dict/trunk/lib/dictd.c	2008-04-18 16:07:12 UTC (rev 4624)
+++ xfce4-dict/trunk/lib/dictd.c	2008-04-18 16:07:15 UTC (rev 4625)
@@ -135,7 +135,11 @@
 
 	if (strncmp("552", answer, 3) == 0)
 	{
-		dict_gui_status_add(dd, _("No matches could be found for \"%s\"."), dd->searched_word);
+		dict_gui_status_add(dd, _("Ready."));
+		gtk_text_buffer_get_start_iter(dd->main_textbuffer, &iter);
+		tmp = g_strdup_printf(_("No matches could be found for \"%s\"."), dd->searched_word);
+		gtk_text_buffer_insert(dd->main_textbuffer, &iter, tmp, -1);
+		g_free(tmp);
 		g_free(dd->query_buffer);
 		return FALSE;
 	}




More information about the Goodies-commits mailing list