[anjuta] document-manager: Fixes on find in files
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] document-manager: Fixes on find in files
- Date: Fri, 24 Feb 2012 14:04:59 +0000 (UTC)
commit 333a286f570179b26a65fae220b21fa4b6cfe23e
Author: Johannes Schmid <jhs gnome org>
Date: Fri Feb 24 14:51:35 2012 +0100
document-manager: Fixes on find in files
* Switch to correct document if it is already opened
* Fix sensitivity of "Replace All"
plugins/document-manager/search-files.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/document-manager/search-files.c b/plugins/document-manager/search-files.c
index 031eca3..d0d8e01 100644
--- a/plugins/document-manager/search-files.c
+++ b/plugins/document-manager/search-files.c
@@ -121,7 +121,7 @@ search_files_update_ui (SearchFiles* sf)
COLUMN_SELECTED, &selected, -1);
if (selected)
{
- can_search = TRUE;
+ can_replace = TRUE;
break;
}
}
@@ -465,12 +465,12 @@ search_files_search_clicked (SearchFiles* sf)
anjuta_command_queue_push(queue, ANJUTA_COMMAND(cmd));
}
sf->priv->busy = TRUE;
+ search_files_update_ui(sf);
anjuta_command_queue_start (queue);
g_list_foreach (files, (GFunc) g_object_unref, NULL);
g_list_free (files);
}
- search_files_update_ui(sf);
g_free (mime_types);
}
@@ -542,6 +542,8 @@ search_files_result_activated (GtkTreeView* files_tree,
if (editor && IANJUTA_IS_EDITOR(editor))
{
+ anjuta_docman_present_notebook_page(sf->priv->docman,
+ editor);
search_files_editor_loaded (sf, IANJUTA_EDITOR(editor));
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]