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

Enrico Troeger enrico at xfce.org
Sat Sep 27 18:17:58 CEST 2008


Author: enrico
Date: 2008-09-27 16:17:58 +0000 (Sat, 27 Sep 2008)
New Revision: 5483

Modified:
   xfce4-dict/trunk/ChangeLog
   xfce4-dict/trunk/lib/aspell.c
   xfce4-dict/trunk/lib/common.c
Log:
Clear the panel text entry field also for web and spell check search methods (also reported by Liviu Andronic, thanks).

Modified: xfce4-dict/trunk/ChangeLog
===================================================================
--- xfce4-dict/trunk/ChangeLog	2008-09-27 16:17:54 UTC (rev 5482)
+++ xfce4-dict/trunk/ChangeLog	2008-09-27 16:17:58 UTC (rev 5483)
@@ -2,6 +2,8 @@
 
  * Remove leading and trailing spaces from the search term before
    performing the search (reported by Liviu Andronic).
+ * Clear the panel text entry field also for web and spell check search
+   methods (also reported by Liviu Andronic, thanks).
 
 
 2008-09-26  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: xfce4-dict/trunk/lib/aspell.c
===================================================================
--- xfce4-dict/trunk/lib/aspell.c	2008-09-27 16:17:54 UTC (rev 5482)
+++ xfce4-dict/trunk/lib/aspell.c	2008-09-27 16:17:58 UTC (rev 5483)
@@ -114,8 +114,12 @@
 	}
 	if (cond & (G_IO_ERR | G_IO_HUP | G_IO_NVAL))
 	{
+		/* clear the panel entry to not search again when you click on the panel button */
+		dict_gui_set_panel_entry_text(iod->dd, "");
+
 		g_free(iod->word);
 		g_free(iod);
+
 		return FALSE;
 	}
 

Modified: xfce4-dict/trunk/lib/common.c
===================================================================
--- xfce4-dict/trunk/lib/common.c	2008-09-27 16:17:54 UTC (rev 5482)
+++ xfce4-dict/trunk/lib/common.c	2008-09-27 16:17:58 UTC (rev 5483)
@@ -173,6 +173,12 @@
 	}
 	g_free(uri);
 
+	if (success)
+	{
+		/* clear the panel entry to not search again when you click on the panel button */
+		dict_gui_set_panel_entry_text(dd, "");
+	}
+
 	return success;
 }
 




More information about the Goodies-commits mailing list