filechooserwidget: Expose selection model

FileChooserCell may need to change the selection during a DND.
This commit is contained in:
Corey Berla 2022-10-19 09:17:39 -07:00 committed by Matthias Clasen
parent 06382ff836
commit 8af191e52d
2 changed files with 9 additions and 0 deletions

View File

@ -7341,3 +7341,8 @@ gtk_file_chooser_widget_get_choice (GtkFileChooser *chooser,
return NULL;
}
GtkSelectionModel *
gtk_file_chooser_widget_get_selection_model (GtkFileChooserWidget *chooser)
{
return chooser->selection_model;
}

View File

@ -23,6 +23,7 @@
#include <glib.h>
#include "gtkfilechooserwidget.h"
#include "gtkselectionmodel.h"
G_BEGIN_DECLS
@ -39,6 +40,9 @@ gtk_file_chooser_widget_initial_focus (GtkFileChooserWidget *chooser);
GSList *
gtk_file_chooser_widget_get_selected_files (GtkFileChooserWidget *impl);
GtkSelectionModel *
gtk_file_chooser_widget_get_selection_model (GtkFileChooserWidget *chooser);
G_END_DECLS
#endif /* __GTK_FILE_CHOOSER_WIDGET_PRIVATE_H__ */