filechooserwidget: Rename and expose get_selected_files()
authorCorey Berla <corey@berla.me>
Wed, 19 Oct 2022 16:16:45 +0000 (09:16 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2022 02:34:41 +0000 (22:34 -0400)
GtkFileChooserCell will need this function

gtk/gtkfilechooserwidget.c
gtk/gtkfilechooserwidgetprivate.h

index c9838c4e2e66b411e4813e135b27dc02ceefcb36..eb5c93fca18884f9bd7cae5f75092f8bc52d122b 100644 (file)
@@ -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;
index 07b0ce3897437bf5a5eba46d19f34520880a75f9..e894df3e9d19b70289fd09ef36cc1bae56f2fa43 100644 (file)
@@ -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__ */