37 GCancellable *cancellable);
62 g_queue_push_tail (
job_queue[priority], job);
124 g_object_unref (job->
job);
134 g_signal_handlers_disconnect_by_func (job->
job,
138 g_signal_handlers_disconnect_by_func (job->
job->cancellable,
149 GCancellable *cancellable)
180 if (g_cancellable_is_cancelled (job->cancellable))
196 if (g_cancellable_is_cancelled (job->cancellable))
228 static GOnce once_init = G_ONCE_INIT;
236 s_job->
job = g_object_ref (job);
243 g_signal_connect_swapped (job->cancellable,
"cancelled",
249 g_signal_connect_swapped (job,
"finished",
252 g_signal_connect_swapped (job,
"cancelled",
255 g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
258 (GDestroyNotify)g_object_unref);
261 g_assert_not_reached ();
271 gboolean need_resort =
FALSE;
281 for (l =
job_list; l; l = l->next) {
284 if (s_job->
job == job) {
285 need_resort = (s_job->
priority != priority);
302 g_queue_push_tail (
job_queue[priority], s_job);