[gtk/gbsneto/filechooser-column-view: 155/161] filechooserwidget: Rename and expose get_selected_files()




commit 9a782b397b7f8837ba8e07749011cd5b4091c3c5
Author: Corey Berla <corey berla me>
Date:   Wed Oct 19 09:16:45 2022 -0700

    filechooserwidget: Rename and expose get_selected_files()
    
    GtkFileChooserCell will need this function

 gtk/gtkfilechooserwidget.c        | 8 +++-----
 gtk/gtkfilechooserwidgetprivate.h | 3 +++
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index c9838c4e2e..eb5c93fca1 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -476,8 +476,6 @@ static void location_switch_to_path_bar (GtkFileChooserWidget *impl);
 static void stop_loading_and_clear_list_model (GtkFileChooserWidget *impl,
                                                gboolean remove_from_treeview);
 
-static GSList  *get_selected_files           (GtkFileChooserWidget *impl);
-
 static void     search_setup_widgets         (GtkFileChooserWidget *impl);
 static void     search_stop_searching        (GtkFileChooserWidget *impl,
                                               gboolean               remove_query);
@@ -4638,7 +4636,7 @@ get_selected_files_as_model (GtkFileChooserWidget *impl)
   GSList *files, *l;
 
   store = g_list_store_new (G_TYPE_FILE);
-  files = get_selected_files (impl);
+  files = gtk_file_chooser_widget_get_selected_files (impl);
   for (l = files; l; l = l->next)
     g_list_store_append (store, l->data);
   g_slist_free_full (files, g_object_unref);
@@ -5635,8 +5633,8 @@ gtk_file_chooser_widget_initial_focus (GtkFileChooserWidget *impl)
   gtk_widget_grab_focus (widget);
 }
 
-static GSList *
-get_selected_files (GtkFileChooserWidget *impl)
+GSList *
+gtk_file_chooser_widget_get_selected_files (GtkFileChooserWidget *impl)
 {
   GtkBitsetIter iter;
   GtkBitset *bitset;
diff --git a/gtk/gtkfilechooserwidgetprivate.h b/gtk/gtkfilechooserwidgetprivate.h
index 07b0ce3897..e894df3e9d 100644
--- a/gtk/gtkfilechooserwidgetprivate.h
+++ b/gtk/gtkfilechooserwidgetprivate.h
@@ -36,6 +36,9 @@ gtk_file_chooser_widget_should_respond (GtkFileChooserWidget *chooser);
 void
 gtk_file_chooser_widget_initial_focus  (GtkFileChooserWidget *chooser);
 
+GSList *
+gtk_file_chooser_widget_get_selected_files (GtkFileChooserWidget *impl);
+
 G_END_DECLS
 
 #endif /* __GTK_FILE_CHOOSER_WIDGET_PRIVATE_H__ */


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