From 06382ff83623b3af334340c9c4292e0c24d0fd91 Mon Sep 17 00:00:00 2001 From: Corey Berla Date: Wed, 19 Oct 2022 09:16:45 -0700 Subject: [PATCH] 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__ */ -- 2.30.2