[gtk/gbsneto/filechooser-column-view: 18/74] filechooserwidget: Set rubberbanding on column view




commit ce36611c4ea4ca120c65ea69980f1164b5182576
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Oct 8 10:20:14 2022 -0300

    filechooserwidget: Set rubberbanding on column view
    
    And stop setting it on the tree view.

 gtk/gtkfilechooserwidget.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 4eb913f6f8..5516d6c438 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]