[evolution/webkit: 192/196] Correctly destroy printing EActivity when printing is finished
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit: 192/196] Correctly destroy printing EActivity when printing is finished
- Date: Tue, 27 Mar 2012 16:16:51 +0000 (UTC)
commit d2eadacaa82fd9aca44a6f7a330e00d6ec1226ac
Author: Dan VrÃtil <dvratil redhat com>
Date: Tue Mar 27 14:01:52 2012 +0200
Correctly destroy printing EActivity when printing is finished
mail/e-mail-reader-utils.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index ffd677a..d34894e 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -432,6 +432,14 @@ e_mail_reader_open_selected (EMailReader *reader)
return ii;
}
+static gboolean
+destroy_printing_activity (EActivity *activity)
+{
+ g_object_unref (activity);
+
+ return FALSE;
+}
+
static void
printing_done_cb (EMailPrinter *printer,
GtkPrintOperation *operation,
@@ -463,7 +471,7 @@ printing_done_cb (EMailPrinter *printer,
so that user can actually see the the printing was sucesfully finished. */
e_activity_set_state (activity, E_ACTIVITY_COMPLETED);
g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, 3,
- (GSourceFunc) g_object_unref, activity, NULL);
+ (GSourceFunc) destroy_printing_activity, activity, NULL);
g_object_unref (printer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]