Re: [PATCH] search as you type does not open the selection



Nelson Benítez wrote:
> Hi,
> filed as bug 334928[1], proposed patch attached.

Sorry, I forgot to attach it.
Index: src/file-manager/fm-list-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-list-view.c,v
retrieving revision 1.263
diff -p -u -r1.263 fm-list-view.c
--- src/file-manager/fm-list-view.c	12 Dec 2005 16:59:11 -0000	1.263
+++ src/file-manager/fm-list-view.c	23 Aug 2006 19:01:40 -0000
@@ -840,6 +840,12 @@ row_collapsed_callback (GtkTreeView *tre
 		       unload_data);
 }
 
+static void
+row_activated_callback (GtkTreeView *treeview, GtkTreePath *path, 
+			GtkTreeViewColumn *column, FMListView *view)
+{
+	activate_selected_items (view);
+}
 
 static void
 subdirectory_unloaded_callback (FMListModel *model,
@@ -1220,6 +1226,8 @@ create_and_set_up_tree_view (FMListView 
                                  G_CALLBACK (row_expanded_callback), view, 0);
 	g_signal_connect_object (view->details->tree_view, "row_collapsed",
                                  G_CALLBACK (row_collapsed_callback), view, 0);
+	g_signal_connect_object (view->details->tree_view, "row-activated",
+                                 G_CALLBACK (row_activated_callback), view, 0);
 	
 	view->details->model = g_object_new (FM_TYPE_LIST_MODEL, NULL);
 	gtk_tree_view_set_model (view->details->tree_view, GTK_TREE_MODEL (view->details->model));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]