diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-10 23:08:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-11 00:24:13 +0800 |
commit | 16a95bfa16b3864268e0ab0916bb6c02ec626fe0 (patch) | |
tree | cf790b2179506c4eab10bad7fb41880379c2e872 /mail/e-mail-printer.h | |
parent | 3acb2d672821efd599d1fad0a55808de6b9bd495 (diff) | |
download | gsoc2013-evolution-16a95bfa16b3864268e0ab0916bb6c02ec626fe0.tar gsoc2013-evolution-16a95bfa16b3864268e0ab0916bb6c02ec626fe0.tar.gz gsoc2013-evolution-16a95bfa16b3864268e0ab0916bb6c02ec626fe0.tar.bz2 gsoc2013-evolution-16a95bfa16b3864268e0ab0916bb6c02ec626fe0.tar.lz gsoc2013-evolution-16a95bfa16b3864268e0ab0916bb6c02ec626fe0.tar.xz gsoc2013-evolution-16a95bfa16b3864268e0ab0916bb6c02ec626fe0.tar.zst gsoc2013-evolution-16a95bfa16b3864268e0ab0916bb6c02ec626fe0.zip |
Convert e_mail_printer_print() to a proper async function.
This adds a GAsyncReadyCallback and a closure to e_mail_printer_print(),
and trades the "done" signal for e_mail_printer_print_finish() so that
EMailPrinter is a little more reentrant.
Diffstat (limited to 'mail/e-mail-printer.h')
-rw-r--r-- | mail/e-mail-printer.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/e-mail-printer.h b/mail/e-mail-printer.h index d38bf34d1d..b5a79d5a1b 100644 --- a/mail/e-mail-printer.h +++ b/mail/e-mail-printer.h @@ -55,11 +55,6 @@ struct _EMailPrinter { struct _EMailPrinterClass { GObjectClass parent_class; - - void (*done) (EMailPrinter *printer, - GtkPrintOperation *operation, - GtkPrintOperationResult result, - gpointer user_data); }; GType e_mail_printer_get_type (void) G_GNUC_CONST; @@ -68,7 +63,13 @@ EMailPartList * e_mail_printer_ref_part_list (EMailPrinter *printer); void e_mail_printer_print (EMailPrinter *printer, GtkPrintOperationAction action, EMailFormatter *formatter, - GCancellable *cancellable); + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GtkPrintOperationResult + e_mail_printer_print_finish (EMailPrinter *printer, + GAsyncResult *result, + GError **error); const gchar * e_mail_printer_get_export_filename (EMailPrinter *printer); void e_mail_printer_set_export_filename |