[evince/wip/app: 2/6] libview: Hold the application while printing
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/app: 2/6] libview: Hold the application while printing
- Date: Wed, 5 Sep 2012 15:32:03 +0000 (UTC)
commit c2151a117d13d09eb84aafbc8d2f1bb05ad33a6e
Author: Christian Persch <chpe gnome org>
Date: Sat Jul 7 17:35:06 2012 +0200
libview: Hold the application while printing
We need to hold the application while the print is in progress.
libview/ev-print-operation.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-print-operation.c b/libview/ev-print-operation.c
index a5561ac..34d5ca6 100644
--- a/libview/ev-print-operation.c
+++ b/libview/ev-print-operation.c
@@ -1969,6 +1969,8 @@ ev_print_operation_print_finalize (GObject *object)
}
(* G_OBJECT_CLASS (ev_print_operation_print_parent_class)->finalize) (object);
+
+ g_application_release (g_application_get_default ());
}
static void
@@ -2000,6 +2002,8 @@ ev_print_operation_print_init (EvPrintOperationPrint *print)
gtk_print_operation_set_use_full_page (print->op, TRUE);
gtk_print_operation_set_unit (print->op, GTK_UNIT_POINTS);
gtk_print_operation_set_custom_tab_label (print->op, _("Page Handling"));
+
+ g_application_hold (g_application_get_default ());
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]