diff options
author | Tom Schoonjans <Tom.Schoonjans@diamond.ac.uk> | 2017-07-13 20:01:38 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-18 13:30:44 -0400 |
commit | f10bfcc63866d035115f746bba4744a95fa7a600 (patch) | |
tree | 95c5c9dc63b8559c9d40638856000a24d5bac975 /gtk/gtkfilechoosernative.c | |
parent | 946166e08000c3f1d5da44b5702461a83db18fbb (diff) | |
download | gtk+-f10bfcc63866d035115f746bba4744a95fa7a600.tar.gz |
GtkFileChooserNativeQuartz: add support for get_filter and set_filter
https://bugzilla.gnome.org/show_bug.cgi?id=784723
Diffstat (limited to 'gtk/gtkfilechoosernative.c')
-rw-r--r-- | gtk/gtkfilechoosernative.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkfilechoosernative.c b/gtk/gtkfilechoosernative.c index acf4ed7006..03b7dd8d24 100644 --- a/gtk/gtkfilechoosernative.c +++ b/gtk/gtkfilechoosernative.c @@ -464,6 +464,11 @@ gtk_file_chooser_native_set_property (GObject *object, gtk_file_chooser_native_set_cancel_label (self, g_value_get_string (value)); break; + case GTK_FILE_CHOOSER_PROP_FILTER: + self->current_filter = g_value_get_object (value); + g_object_notify (G_OBJECT (self), "filter"); + break; + default: g_object_set_property (G_OBJECT (self->dialog), pspec->name, value); break; @@ -488,6 +493,10 @@ gtk_file_chooser_native_get_property (GObject *object, g_value_set_string (value, self->cancel_label); break; + case GTK_FILE_CHOOSER_PROP_FILTER: + g_value_set_object (value, self->current_filter); + break; + default: g_object_get_property (G_OBJECT (self->dialog), pspec->name, value); break; |