2007-07-29 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-jobs.c: (ev_job_render_page_ready):
Add page_ready callback to main loop with high priority and hold
a reference to job during idle.
svn path=/trunk/; revision=2592
+2007-07-29 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * shell/ev-jobs.c: (ev_job_render_page_ready):
+
+ Add page_ready callback to main loop with high priority and hold
+ a reference to job during idle.
+
2007-07-29 Carlos Garcia Campos <carlosgc@gnome.org>
* configure.ac:
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