[gtk+/portal] Fix the 'multiple' addition
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/portal] Fix the 'multiple' addition
- Date: Thu, 7 Jul 2016 03:29:17 +0000 (UTC)
commit e9136a90285b5358c5a58810c78fd088640fa291
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 6 20:53:40 2016 -0400
Fix the 'multiple' addition
I was trying to add a native boolean for 'v'. Ouch.
gtk/gtkfilechoosernativeportal.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechoosernativeportal.c b/gtk/gtkfilechoosernativeportal.c
index 31786cc..c355601 100644
--- a/gtk/gtkfilechoosernativeportal.c
+++ b/gtk/gtkfilechoosernativeportal.c
@@ -336,7 +336,8 @@ gtk_file_chooser_native_portal_show (GtkFileChooserNative *self)
}
g_variant_builder_init (&opt_builder, G_VARIANT_TYPE_VARDICT);
- g_variant_builder_add (&opt_builder, "{sv}", "multiple", multiple);
+ g_variant_builder_add (&opt_builder, "{sv}", "multiple",
+ g_variant_new_boolean (multiple));
if (self->accept_label)
g_variant_builder_add (&opt_builder, "{sv}", "accept_label",
g_variant_new_string (self->accept_label));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]