]> Pileus Git - ~andy/gtk/commitdiff
filechooser: Use SELECTION_SINGLE
authorBenjamin Otte <otte@redhat.com>
Thu, 12 Jan 2012 18:30:35 +0000 (19:30 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 12 Jan 2012 18:37:15 +0000 (19:37 +0100)
We want to allow people to unselect the item.

gtk/gtkfilechooserdefault.c

index f08d36bed0603b6610983059903685f1a93aed97..cd44f9f56f9c4a8df8fdf5713ba89645fdb48342 100644 (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);