changeset 526:92b5a033a279

fixed dragging multiple files from file list http://sourceforge.net/tracker/index.php?func=detail&aid=1950740&group_id=222125&atid=1054680
author nadvornik
date Fri, 25 Apr 2008 20:08:47 +0000
parents 86f4c42afeab
children 93a1730e4641
files src/view_file_list.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file_list.c	Fri Apr 25 09:31:32 2008 +0000
+++ b/src/view_file_list.c	Fri Apr 25 20:08:47 2008 +0000
@@ -768,8 +768,17 @@
 	    !(bevent->state & GDK_CONTROL_MASK ) &&
 	    vflist_row_is_selected(vfl, fd))
 		{
+		GtkTreeSelection *selection;
+
 		gtk_widget_grab_focus(widget);
-//		return TRUE; // FIXME - expand
+
+
+		/* returning FALSE and further processing of the event is needed for 
+		   correct operation of the expander, to show the sidecar files.
+		   It however resets the selection of multiple files. With this condition
+		   it should work for both cases */
+		selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widget));
+		return (gtk_tree_selection_count_selected_rows(selection) > 1);
 		}
 
 #if 0