[anjuta] file-manager: Enable typeahead search.
- From: Carl-Anton Ingmarsson <carlantoni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] file-manager: Enable typeahead search.
- Date: Mon, 21 Jan 2013 20:28:50 +0000 (UTC)
commit c0cb1f097bc8c8cc5c5e570f7d3866f53cfc003e
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Sat Jan 19 10:16:47 2013 +0100
file-manager: Enable typeahead search.
https://bugzilla.gnome.org/show_bug.cgi?id=692175
plugins/file-manager/file-view.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/plugins/file-manager/file-view.c b/plugins/file-manager/file-view.c
index 1a1ed1a..c3550f3 100644
--- a/plugins/file-manager/file-view.c
+++ b/plugins/file-manager/file-view.c
@@ -814,7 +814,10 @@ file_view_init (AnjutaFileView *object)
GDK_BUTTON1_MASK,
uri_targets,
1,
- GDK_ACTION_MOVE);
+ GDK_ACTION_MOVE);
+
+ /* Typeahead search */
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (object), COLUMN_FILENAME);
}
static void
@@ -940,9 +943,9 @@ file_view_refresh_vcs (AnjutaFileView* view)
GtkWidget*
file_view_new (void)
{
- return g_object_new (ANJUTA_TYPE_FILE_VIEW,
+ return g_object_new (ANJUTA_TYPE_FILE_VIEW,
"headers-visible", FALSE,
"has-tooltip", TRUE,
- "enable-search", FALSE,
+ "enable-search", TRUE,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]