filechooserwidget: Set rubberbanding on column view
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 8 Oct 2022 13:20:14 +0000 (10:20 -0300)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2022 02:34:40 +0000 (22:34 -0400)
And stop setting it on the tree view.

gtk/gtkfilechooserwidget.c

index 4eb913f6f8f6bcd7391e1f3a76bd669bab52f570..5516d6c438549b10fa4a0d15d724a2b7b915bf08 100644 (file)
@@ -2753,18 +2753,11 @@ static void
 set_select_multiple (GtkFileChooserWidget *impl,
                      gboolean               select_multiple)
 {
-  GtkTreeSelection *selection;
-  GtkSelectionMode mode;
-
   if (select_multiple == impl->select_multiple)
     return;
 
-  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);
-
-  gtk_tree_view_set_rubber_banding (GTK_TREE_VIEW (impl->browse_files_tree_view), select_multiple);
+  gtk_column_view_set_enable_rubberband (GTK_COLUMN_VIEW (impl->browse_files_column_view),
+                                         select_multiple);
 
   g_clear_object (&impl->browse_files_selection_model);
   impl->browse_files_selection_model = select_multiple