[gtk+/portal] file filter: Properly serialize pattern filters
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/portal] file filter: Properly serialize pattern filters
- Date: Thu, 7 Jul 2016 03:29:42 +0000 (UTC)
commit 21ab2de527a1861fefd2d3e6bf314b13573d1376
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 6 21:03:35 2016 -0400
file filter: Properly serialize pattern filters
A very keen observation by Cosimo.
gtk/gtkfilefilter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilefilter.c b/gtk/gtkfilefilter.c
index e6d05fa..7ca8e39 100644
--- a/gtk/gtkfilefilter.c
+++ b/gtk/gtkfilefilter.c
@@ -743,7 +743,7 @@ gtk_file_filter_to_gvariant (GtkFileFilter *filter)
switch (rule->type)
{
case FILTER_RULE_PATTERN:
- g_variant_builder_add (&builder, "(us)", 0, rule->u.mime_type);
+ g_variant_builder_add (&builder, "(us)", 0, rule->u.pattern);
break;
case FILTER_RULE_MIME_TYPE:
g_variant_builder_add (&builder, "(us)", 1, rule->u.mime_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]