From c03e5c07e3f7dd1cec9c1b860565322953d878f4 Mon Sep 17 00:00:00 2001 From: monsta Date: Sun, 7 Dec 2014 21:19:38 +0300 Subject: sidebar-thumbnails: connect to job finished signal before scheduling the job taken from https://git.gnome.org/browse/evince/commit/?id=6b0630f8c2abd992d65075152dce5fefd9b51f45 --- shell/ev-sidebar-thumbnails.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shell') diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 5fb951ac..b677d032 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -457,9 +457,7 @@ add_range (EvSidebarThumbnails *sidebar_thumbnails, if (priv->document->iswebdocument) { ev_job_set_run_mode(job, EV_JOB_RUN_MAIN_LOOP); } - - ev_job_scheduler_push_job (EV_JOB (job), EV_JOB_PRIORITY_HIGH); - + g_object_set_data_full (G_OBJECT (job), "tree_iter", gtk_tree_iter_copy (&iter), (GDestroyNotify) gtk_tree_iter_free); @@ -469,7 +467,9 @@ add_range (EvSidebarThumbnails *sidebar_thumbnails, gtk_list_store_set (priv->list_store, &iter, COLUMN_JOB, job, -1); - + + ev_job_scheduler_push_job (EV_JOB (job), EV_JOB_PRIORITY_HIGH); + /* The queue and the list own a ref to the job now */ g_object_unref (job); } else if (job) { -- cgit v1.2.1