diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2020-05-23 13:38:54 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2020-06-09 22:59:34 +0200 |
commit | 57135acd2d56bdd17fcc295d04fb8ad7fc048b9c (patch) | |
tree | 232c700d4e2625f723bf68cd3ff1e6135518da49 /gtk/gtkfilechoosernative.c | |
parent | 8cb50ac6e9c6a78f337e4ad2bb61aa0558844904 (diff) | |
download | gtk+-57135acd2d56bdd17fcc295d04fb8ad7fc048b9c.tar.gz |
filechoosernative: Make get_filter work for (non-portal) native chooser
'gtk_file_chooser_get_filter' did not work for GtkFileChooserNative,
since the previous way did not properly handle the delegate dialog,
s.a. commit a136cbae8f8848d49976512f7f0ec73137428ea0
("filechoosernative: forward current_filter to delegate dialog",
2018-11-29) for details, wich basiscally fixed the same thing for
the 'gtk_file_chooser_set_filter' case.
This fixes #1820 for the fallback dialog. A solution for the portal
one (which also requires changes to xdg-desktop-portal and
xdg-desktop-portal-gtk as well) will be suggested in a subsequent step.
Bug: #1820
Diffstat (limited to 'gtk/gtkfilechoosernative.c')
-rw-r--r-- | gtk/gtkfilechoosernative.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkfilechoosernative.c b/gtk/gtkfilechoosernative.c index 4b1c346abd..d8cb273065 100644 --- a/gtk/gtkfilechoosernative.c +++ b/gtk/gtkfilechoosernative.c @@ -489,6 +489,7 @@ gtk_file_chooser_native_get_property (GObject *object, break; case GTK_FILE_CHOOSER_PROP_FILTER: + self->current_filter = gtk_file_chooser_get_filter (GTK_FILE_CHOOSER (self->dialog)); g_value_set_object (value, self->current_filter); break; |