[gthumb] show the "search results" catalog in the folder tree
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] show the "search results" catalog in the folder tree
- Date: Sat, 15 May 2010 20:39:55 +0000 (UTC)
commit 45677d4d85b6445159e94f3c2f91a56f38276c3f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat May 15 22:36:21 2010 +0200
show the "search results" catalog in the folder tree
notify the creation of the "search results" catalog before pointing
the browser to it.
[bug #618183]
extensions/search/gth-search-task.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/extensions/search/gth-search-task.c b/extensions/search/gth-search-task.c
index 92e3908..efe69c9 100644
--- a/extensions/search/gth-search-task.c
+++ b/extensions/search/gth-search-task.c
@@ -283,12 +283,24 @@ clear_search_result_copy_done_cb (void **buffer,
gpointer user_data)
{
GthSearchTask *task = user_data;
+ GFile *parent;
+ GList *files;
if (error != NULL) {
_gtk_error_dialog_from_gerror_show (GTK_WINDOW (task->priv->browser), _("Could not create the catalog"), &error);
return;
}
+ parent = g_file_get_parent (task->priv->search_catalog);
+ files = g_list_prepend (NULL, g_object_ref (task->priv->search_catalog));
+ gth_monitor_folder_changed (gth_main_get_default_monitor (),
+ parent,
+ files,
+ GTH_MONITOR_EVENT_CREATED);
+
+ _g_object_list_unref (files);
+ g_object_unref (parent);
+
task->priv->location_ready_id = g_signal_connect (task->priv->browser,
"location-ready",
G_CALLBACK (browser_location_ready_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]