Index: src/window.c
===================================================================
RCS file: /cvs/gnome/file-roller/src/window.c,v
retrieving revision 1.92
diff -u -3 -p -u -p -r1.92 window.c
--- src/window.c	17 Aug 2004 16:26:26 -0000	1.92
+++ src/window.c	19 Aug 2004 15:18:15 -0000
@@ -1833,7 +1833,6 @@ file_button_press_cb (GtkWidget      *wi
 		if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (window->list_view),
 						   event->x, event->y,
 						   &path, NULL, NULL, NULL)) {
-
 			if (! gtk_tree_model_get_iter (GTK_TREE_MODEL (window->list_store), &iter, path)) {
 				gtk_tree_path_free (path);
 				return FALSE;
@@ -1844,7 +1843,6 @@ file_button_press_cb (GtkWidget      *wi
 				gtk_tree_selection_unselect_all (selection);
 				gtk_tree_selection_select_iter (selection, &iter);
 			}
-
 		} else
 			gtk_tree_selection_unselect_all (selection);
 
@@ -1857,11 +1855,26 @@ file_button_press_cb (GtkWidget      *wi
 
 	} else if ((event->type == GDK_BUTTON_PRESS) && (event->button == 1)) {
 		GtkTreePath      *path;
+		GtkTreeSelection *selection;
 
 		if (! gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (window->list_view),
 						     event->x, event->y,
 						     &path, NULL, NULL, NULL))
 			gtk_tree_selection_unselect_all (selection);
+		else{
+			if(strstr(eel_gconf_get_string(PREF_NAUTILUS_CLICK_POLICY,"double"),"single")){
+				if(!(event->state&GDK_CONTROL_MASK||event->state&GDK_CONTROL_MASK)){
+				row_activated_cb (GTK_TREE_VIEW(widget), 
+					path, 
+					NULL, 
+					data);
+				gtk_tree_view_set_cursor (GTK_TREE_VIEW(widget),
+					path,NULL,FALSE);
+				}
+			}
+			gtk_tree_path_free (path);
+		}
+		
 	}
 
 	return FALSE;
Index: src/preferences.h
===================================================================
RCS file: /cvs/gnome/file-roller/src/preferences.h,v
retrieving revision 1.12
diff -u -3 -p -u -p -r1.12 preferences.h
--- src/preferences.h	2 May 2004 18:25:57 -0000	1.12
+++ src/preferences.h	19 Aug 2004 15:18:15 -0000
@@ -55,6 +55,7 @@
 #define PREF_DESKTOP_MENUS_HAVE_TEAROFF "/desktop/gnome/interface/menus_have_tearoff"
 #define PREF_DESKTOP_MENUBAR_DETACHABLE "/desktop/gnome/interface/menubar_detachable"
 #define PREF_DESKTOP_TOOLBAR_DETACHABLE "/desktop/gnome/interface/toolbar_detachable"
+#define PREF_NAUTILUS_CLICK_POLICY "/apps/nautilus/preferences/click_policy"
 
 WindowSortMethod    preferences_get_sort_method ();
 
