[anjuta/gnome-3-4] document-manager: Only use in project files
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-3-4] document-manager: Only use in project files
- Date: Sat, 28 Jul 2012 09:51:27 +0000 (UTC)
commit ab8e88a833b5a5e9d133c28fbb00589235624693
Author: Johannes Schmid <jhs gnome org>
Date: Thu Jul 26 11:34:02 2012 +0200
document-manager: Only use in project files
plugins/document-manager/search-files.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/document-manager/search-files.c b/plugins/document-manager/search-files.c
index 56274b9..73a311c 100644
--- a/plugins/document-manager/search-files.c
+++ b/plugins/document-manager/search-files.c
@@ -456,10 +456,15 @@ search_files_search_clicked (SearchFiles* sf)
g_signal_connect (queue, "finished",
G_CALLBACK (search_files_filter_finished), sf);
for (file = files; file != NULL; file = g_list_next (file))
- {
+ {
SearchFilterFileCommand* cmd =
search_filter_file_command_new(G_FILE (file->data),
mime_types);
+
+ /* Check we are searching in project files only */
+ if (!g_file_has_prefix (G_FILE (file->data), sf->priv->project_file))
+ continue;
+
g_signal_connect (cmd, "command-finished",
G_CALLBACK (search_files_filter_command_finished), sf);
anjuta_command_queue_push(queue, ANJUTA_COMMAND(cmd));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]