From b7d151861cfc4c3dc1a18b547aac3aff009b6c61 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 20 Nov 2019 09:42:16 -0300 Subject: [PATCH] Tracing the allow_async state. --- src/pw3270/print.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pw3270/print.c b/src/pw3270/print.c index aedd7e3..35ce6be 100644 --- a/src/pw3270/print.c +++ b/src/pw3270/print.c @@ -68,9 +68,13 @@ // GtkPrintOperation * operation = v3270_print_operation_new(widget,src); - gtk_print_operation_set_allow_async(operation,get_boolean_from_config("print","allow_async",TRUE)); + { + // Setup async mode + gboolean async = get_boolean_from_config("print","allow_async",FALSE); - trace("Allow async is %s",get_boolean_from_config("print","allow_async",TRUE) ? "TRUE" : "FALSE"); + gtk_print_operation_set_allow_async(operation,async); + g_message("Allow async is %s",async ? "TRUE" : "FALSE"); + } load_print_operation_settings(operation); -- libgit2 0.21.2