filechooser: Use SELECTION_SINGLE

We want to allow people to unselect the item.
This commit is contained in:
Benjamin Otte 2012-01-12 19:30:35 +01:00
parent e7e86ba5f4
commit feb1f8de1c

View File

@ -5196,7 +5196,7 @@ set_select_multiple (GtkFileChooserDefault *impl,
if (select_multiple == impl->select_multiple)
return;
mode = select_multiple ? GTK_SELECTION_MULTIPLE : GTK_SELECTION_BROWSE;
mode = select_multiple ? GTK_SELECTION_MULTIPLE : GTK_SELECTION_SINGLE;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (impl->browse_files_tree_view));
gtk_tree_selection_set_mode (selection, mode);