diff --git a/src/print_backend_file.c b/src/print_backend_file.c index 4d77895..d7184d4 100644 --- a/src/print_backend_file.c +++ b/src/print_backend_file.c @@ -205,18 +205,24 @@ static gboolean on_handle_get_all_options(PrintBackend *interface, GVariant *variant, *media_variant; media_count = 0; - builder = g_variant_builder_new(G_VARIANT_TYPE("a(siiia(iiii))")); - media_variant = g_variant_builder_end(builder); + media_variant = g_variant_new_array(G_VARIANT_TYPE("(siiia(iiii))"), NULL, 0); count = d->printers->num_options; options = d->printers->options; - builder = g_variant_builder_new(G_VARIANT_TYPE("a(ssia(s))")); - for(int i=0; idbus_connection,