Mercurial > geeqie
diff src/view_file_list.c @ 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 | e56c74e89da9 |
children | cca1c3b1b948 |
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