[gtk/mcatanzaro/#1492] filechoosernative: Implement gtk_file_chooser_set_filter()
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/mcatanzaro/#1492] filechoosernative: Implement gtk_file_chooser_set_filter()
- Date: Thu, 29 Nov 2018 21:36:21 +0000 (UTC)
commit fead02906f48fca5ce7245a29ea81b9de96ce53c
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Nov 29 15:34:17 2018 -0600
filechoosernative: Implement gtk_file_chooser_set_filter()
gtk_file_chooser_set_filter() doesn't work for GtkFileChooserNative
The code forwards added and removed filters to the delegate dialog, but
doesn't do anything to set the selected one, so the wrong one gets
chosen.
Fixes #1492
gtk/gtkfilechoosernative.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkfilechoosernative.c b/gtk/gtkfilechoosernative.c
index cfa274f4f1..cf1d97b31d 100644
--- a/gtk/gtkfilechoosernative.c
+++ b/gtk/gtkfilechoosernative.c
@@ -466,6 +466,7 @@ gtk_file_chooser_native_set_property (GObject *object,
case GTK_FILE_CHOOSER_PROP_FILTER:
self->current_filter = g_value_get_object (value);
+ gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (self->dialog), self->current_filter);
g_object_notify (G_OBJECT (self), "filter");
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]