summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2014-12-07 21:19:38 +0300
committerinfirit <[email protected]>2014-12-08 21:46:03 +0100
commitc03e5c07e3f7dd1cec9c1b860565322953d878f4 (patch)
treea646e1fa91c46f24b9e2801dac25c132cdc3b102
parentc6fcd956edad3ed5600ad4629e020e4971de0f16 (diff)
downloadatril-c03e5c07e3f7dd1cec9c1b860565322953d878f4.tar.bz2
atril-c03e5c07e3f7dd1cec9c1b860565322953d878f4.tar.xz
sidebar-thumbnails: connect to job finished signal before scheduling the job
taken from https://git.gnome.org/browse/evince/commit/?id=6b0630f8c2abd992d65075152dce5fefd9b51f45
-rw-r--r--shell/ev-sidebar-thumbnails.c8
1 files changed, 4 insertions, 4 deletions
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) {