Commit 2eb9289265a176741c55a1d11bba7214a75a4e6f
1 parent
54bdc4f3
Exists in
master
and in
1 other branch
Enabling async print only on debug version.
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/dialogs/print/convenience.c
@@ -50,7 +50,12 @@ | @@ -50,7 +50,12 @@ | ||
50 | GtkPrintOperation * operation = v3270_print_operation_new(widget, mode); | 50 | GtkPrintOperation * operation = v3270_print_operation_new(widget, mode); |
51 | 51 | ||
52 | gtk_print_operation_set_show_progress(operation,TRUE); | 52 | gtk_print_operation_set_show_progress(operation,TRUE); |
53 | + | ||
54 | +#ifdef DEBUG | ||
55 | + gtk_print_operation_set_allow_async(operation,TRUE); | ||
56 | +#else | ||
53 | gtk_print_operation_set_allow_async(operation,FALSE); | 57 | gtk_print_operation_set_allow_async(operation,FALSE); |
58 | +#endif // DEBUG | ||
54 | 59 | ||
55 | GtkPrintOperationResult result = GTK_PRINT_OPERATION_RESULT_ERROR; | 60 | GtkPrintOperationResult result = GTK_PRINT_OPERATION_RESULT_ERROR; |
56 | 61 |