[Xfce4-commits] <exo:master> Add assertions to exo_job_scheduler_job_func().

Jannis Pohlmann noreply at xfce.org
Sat Oct 17 12:36:01 CEST 2009


Updating branch refs/heads/master
         to b9217ffd03affdd7dac64ec601f3c401d192f0c6 (commit)
       from d0f1eb81f83a6b2678dbe7e1e2bd72ba414923a9 (commit)

commit b9217ffd03affdd7dac64ec601f3c401d192f0c6
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Sat Oct 17 12:33:21 2009 +0200

    Add assertions to exo_job_scheduler_job_func().

 exo/exo-job.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/exo/exo-job.c b/exo/exo-job.c
index e97852a..3060330 100644
--- a/exo/exo-job.c
+++ b/exo/exo-job.c
@@ -322,6 +322,9 @@ exo_job_scheduler_job_func (GIOSchedulerJob *scheduler_job,
   GError             *error = NULL;
   gboolean            success;
 
+  _exo_return_val_if_fail (G_IS_SIMPLE_ASYNC_RESULT (result), FALSE);
+  _exo_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
+
   job = g_simple_async_result_get_op_res_gpointer (result);
   job->priv->scheduler_job = scheduler_job;
 



More information about the Xfce4-commits mailing list