[Goodies-commits] r5482 - in xfce4-dict/trunk: . lib
Enrico Troeger
enrico at xfce.org
Sat Sep 27 18:17:54 CEST 2008
Author: enrico
Date: 2008-09-27 16:17:54 +0000 (Sat, 27 Sep 2008)
New Revision: 5482
Modified:
xfce4-dict/trunk/ChangeLog
xfce4-dict/trunk/lib/common.c
Log:
Remove leading and trailing spaces from the search term before performing the search (reported by Liviu Andronic).
Modified: xfce4-dict/trunk/ChangeLog
===================================================================
--- xfce4-dict/trunk/ChangeLog 2008-09-26 16:42:51 UTC (rev 5481)
+++ xfce4-dict/trunk/ChangeLog 2008-09-27 16:17:54 UTC (rev 5482)
@@ -1,3 +1,9 @@
+2008-09-27 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * Remove leading and trailing spaces from the search term before
+ performing the search (reported by Liviu Andronic).
+
+
2008-09-26 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* Add "en.wikipedia.org" and "www.merriam-webster.com" to the list
Modified: xfce4-dict/trunk/lib/common.c
===================================================================
--- xfce4-dict/trunk/lib/common.c 2008-09-26 16:42:51 UTC (rev 5481)
+++ xfce4-dict/trunk/lib/common.c 2008-09-27 16:17:54 UTC (rev 5482)
@@ -219,6 +219,8 @@
{
dd->searched_word = g_strdup(word);
}
+ /* remove leading and trailing spaces */
+ g_strstrip(dd->searched_word);
dict_gui_clear_text_buffer(dd);
More information about the Goodies-commits
mailing list