[evince] sidebar-thumbnails: Connect to job finished signal before scheduling the job
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] sidebar-thumbnails: Connect to job finished signal before scheduling the job
- Date: Fri, 14 Jun 2013 15:49:05 +0000 (UTC)
commit 6b0630f8c2abd992d65075152dce5fefd9b51f45
Author: aakash <aakash goenka gmail com>
Date: Sun Jun 9 20:02:09 2013 +0530
sidebar-thumbnails: Connect to job finished signal before scheduling the job
The bug fixes a race condition.
https://bugzilla.gnome.org/show_bug.cgi?id=701900
shell/ev-sidebar-thumbnails.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index 7dbe105..4c81338 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -423,8 +423,6 @@ add_range (EvSidebarThumbnails *sidebar_thumbnails,
page, priv->rotation,
get_scale_for_page (sidebar_thumbnails, page));
ev_job_thumbnail_set_has_frame (EV_JOB_THUMBNAIL (job), FALSE);
- 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);
@@ -434,6 +432,7 @@ 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]