[gtk/gbsneto/filechooser-column-view: 156/161] filechooserwidget: Expose selection model
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gbsneto/filechooser-column-view: 156/161] filechooserwidget: Expose selection model
- Date: Thu, 20 Oct 2022 19:22:28 +0000 (UTC)
commit b6005cf91ac3b0e65066380a93fe5bfa574bfc01
Author: Corey Berla <corey berla me>
Date: Wed Oct 19 09:17:39 2022 -0700
filechooserwidget: Expose selection model
FileChooserCell may need to change the selection during a DND.
gtk/gtkfilechooserwidget.c | 5 +++++
gtk/gtkfilechooserwidgetprivate.h | 4 ++++
2 files changed, 9 insertions(+)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index eb5c93fca1..4ee063cdf7 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -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;
+}
diff --git a/gtk/gtkfilechooserwidgetprivate.h b/gtk/gtkfilechooserwidgetprivate.h
index e894df3e9d..91fdddd962 100644
--- a/gtk/gtkfilechooserwidgetprivate.h
+++ b/gtk/gtkfilechooserwidgetprivate.h
@@ -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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]