From 87666d987f617591ad23c207d04d3a12fe1ef027 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 23 Aug 2007 13:34:31 +0000 Subject: [PATCH] * this fix should fix the crash mentioned int NB#65283, but the problem probably remains. pmo-trunk-r3056 --- src/modest-progress-object.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/modest-progress-object.c b/src/modest-progress-object.c index 6de3451..780543f 100644 --- a/src/modest-progress-object.c +++ b/src/modest-progress-object.c @@ -33,33 +33,43 @@ static void modest_progress_object_base_init (gpointer g_class); void modest_progress_object_add_operation (ModestProgressObject *self, - ModestMailOperation *mail_op) + ModestMailOperation *mail_op) { + g_return_if_fail (MODEST_IS_PROGRESS_OBJECT(self)); + return MODEST_PROGRESS_OBJECT_GET_IFACE (self)->add_operation_func (self, mail_op); } void modest_progress_object_remove_operation (ModestProgressObject *self, - ModestMailOperation *mail_op) + ModestMailOperation *mail_op) { + g_return_if_fail (MODEST_IS_PROGRESS_OBJECT(self)); + return MODEST_PROGRESS_OBJECT_GET_IFACE (self)->remove_operation_func (self, mail_op); } void modest_progress_object_cancel_current_operation (ModestProgressObject *self) { + g_return_if_fail (MODEST_IS_PROGRESS_OBJECT(self)); + return MODEST_PROGRESS_OBJECT_GET_IFACE (self)->cancel_current_operation_func (self); } void modest_progress_object_cancel_all_operations (ModestProgressObject *self) { + g_return_if_fail (MODEST_IS_PROGRESS_OBJECT(self)); + return MODEST_PROGRESS_OBJECT_GET_IFACE (self)->cancel_all_operations_func (self); } guint modest_progress_object_num_pending_operations (ModestProgressObject *self) { + g_return_if_fail (MODEST_IS_PROGRESS_OBJECT(self)); + return MODEST_PROGRESS_OBJECT_GET_IFACE (self)->num_pending_operations_func (self); } -- 1.7.9.5