[Goodies-commits] r6611 - in xfce4-dict/trunk: . lib
Enrico Troeger
enrico at xfce.org
Sat Jan 31 16:46:38 CET 2009
Author: enrico
Date: 2009-01-31 15:46:38 +0000 (Sat, 31 Jan 2009)
New Revision: 6611
Modified:
xfce4-dict/trunk/ChangeLog
xfce4-dict/trunk/lib/gui.c
Log:
When using the web service fallback after a failed dictionary search, hide the main window if ran as panel plugin.
Modified: xfce4-dict/trunk/ChangeLog
===================================================================
--- xfce4-dict/trunk/ChangeLog 2009-01-31 10:00:12 UTC (rev 6610)
+++ xfce4-dict/trunk/ChangeLog 2009-01-31 15:46:38 UTC (rev 6611)
@@ -1,3 +1,9 @@
+2009-01-31 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * When using the web service fallback after a failed dictionary search,
+ hide the main window if ran as panel plugin.
+
+
2009-01-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* Fix untranslated search engine description (#4835).
Modified: xfce4-dict/trunk/lib/gui.c
===================================================================
--- xfce4-dict/trunk/lib/gui.c 2009-01-31 10:00:12 UTC (rev 6610)
+++ xfce4-dict/trunk/lib/gui.c 2009-01-31 15:46:38 UTC (rev 6611)
@@ -61,13 +61,14 @@
{
gtk_entry_set_text(GTK_ENTRY(dd->main_entry), found_link);
dict_search_word(dd, found_link);
-
break;
}
g_object_get(G_OBJECT(tag), "name", &found_link, NULL);
if (found_link != NULL && strcmp("link", found_link) == 0)
{
- dict_start_web_query(dd, dd->searched_word);
+ gboolean browser_started = dict_start_web_query(dd, dd->searched_word);
+ if (browser_started && dd->is_plugin)
+ gtk_widget_hide(dd->window);
g_free(found_link);
break;
}
More information about the Goodies-commits
mailing list