From 2eb9289265a176741c55a1d11bba7214a75a4e6f Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 20 Nov 2019 11:52:31 -0300 Subject: [PATCH] Enabling async print only on debug version. --- src/dialogs/print/convenience.c | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/src/dialogs/print/convenience.c b/src/dialogs/print/convenience.c index 9307583..b27a392 100644 --- a/src/dialogs/print/convenience.c +++ b/src/dialogs/print/convenience.c @@ -50,7 +50,12 @@ GtkPrintOperation * operation = v3270_print_operation_new(widget, mode); gtk_print_operation_set_show_progress(operation,TRUE); + +#ifdef DEBUG + gtk_print_operation_set_allow_async(operation,TRUE); +#else gtk_print_operation_set_allow_async(operation,FALSE); +#endif // DEBUG GtkPrintOperationResult result = GTK_PRINT_OPERATION_RESULT_ERROR; -- libgit2 0.21.2