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

Enrico Troeger enrico at xfce.org
Wed Oct 1 15:56:43 CEST 2008


Author: enrico
Date: 2008-10-01 13:56:43 +0000 (Wed, 01 Oct 2008)
New Revision: 5496

Modified:
   xfce4-dict/trunk/ChangeLog
   xfce4-dict/trunk/lib/aspell.c
   xfce4-dict/trunk/lib/common.c
   xfce4-dict/trunk/lib/dictd.c
Log:
Improve clearing of panel text entry: clear it always.

Modified: xfce4-dict/trunk/ChangeLog
===================================================================
--- xfce4-dict/trunk/ChangeLog	2008-10-01 13:48:15 UTC (rev 5495)
+++ xfce4-dict/trunk/ChangeLog	2008-10-01 13:56:43 UTC (rev 5496)
@@ -1,3 +1,8 @@
+2008-09-29  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * Improve clearing of panel text entry: clear it always.
+
+
 2008-09-27  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * Remove leading and trailing spaces from the search term before

Modified: xfce4-dict/trunk/lib/aspell.c
===================================================================
--- xfce4-dict/trunk/lib/aspell.c	2008-10-01 13:48:15 UTC (rev 5495)
+++ xfce4-dict/trunk/lib/aspell.c	2008-10-01 13:56:43 UTC (rev 5496)
@@ -114,9 +114,6 @@
 	}
 	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);
 

Modified: xfce4-dict/trunk/lib/common.c
===================================================================
--- xfce4-dict/trunk/lib/common.c	2008-10-01 13:48:15 UTC (rev 5495)
+++ xfce4-dict/trunk/lib/common.c	2008-10-01 13:56:43 UTC (rev 5496)
@@ -173,12 +173,6 @@
 	}
 	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;
 }
 
@@ -235,7 +229,6 @@
 		case DICTMODE_WEB:
 		{
 			browser_started = start_web_query(dd, dd->searched_word);
-
 			break;
 		}
 		case DICTMODE_SPELL:
@@ -260,6 +253,8 @@
 	{
 		dict_gui_show_main_window(dd);
 	}
+	/* clear the panel entry to not search again when you click on the panel button */
+	dict_gui_set_panel_entry_text(dd, "");
 }
 
 

Modified: xfce4-dict/trunk/lib/dictd.c
===================================================================
--- xfce4-dict/trunk/lib/dictd.c	2008-10-01 13:48:15 UTC (rev 5495)
+++ xfce4-dict/trunk/lib/dictd.c	2008-10-01 13:56:43 UTC (rev 5496)
@@ -231,9 +231,6 @@
 	g_strfreev(lines);
 	g_free(dd->query_buffer);
 
-	/* clear the panel entry to not search again when you click on the panel button */
-	dict_gui_set_panel_entry_text(dd, "");
-
 	return FALSE;
 }
 




More information about the Goodies-commits mailing list