X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=shell%2Fev-jobs.c;h=1218cd063314451300fc05f90a9622c76a93b9cc;hb=4f6105d3df2cbf07bccd7de156693aab7e71bc31;hp=8e140f8808f4126dcb1ae0a00e5d6cbfc559cfb9;hpb=85fa11d86616d3a9c5a5cfeba78dd7aa72e7997a;p=evince.git diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c index 8e140f88..1218cd06 100644 --- a/shell/ev-jobs.c +++ b/shell/ev-jobs.c @@ -344,7 +344,10 @@ static void ev_job_render_page_ready (EvJobRender *job) { job->page_ready = TRUE; - g_idle_add ((GSourceFunc)notify_page_ready, job); + g_idle_add_full (G_PRIORITY_HIGH_IDLE, + (GSourceFunc)notify_page_ready, + g_object_ref (job), + (GDestroyNotify)g_object_unref); } void