[gnome-photos] base-item: Shuffle some code around
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-item: Shuffle some code around
- Date: Tue, 28 Jun 2016 16:21:52 +0000 (UTC)
commit 81c8b18782a9b4c4f4a6727ec80483fd64cfd2e0
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jun 24 17:09:57 2016 +0200
base-item: Shuffle some code around
This will make the subsequent commit easier to read.
https://bugzilla.gnome.org/show_bug.cgi?id=765105
src/photos-base-item.c | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index cfc7f8a..af00b24 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -908,6 +908,27 @@ photos_base_item_guess_save_sizes_in_thread_func (GTask *task,
}
+static gboolean
+photos_base_item_process_idle (gpointer user_data)
+{
+ GTask *task = G_TASK (user_data);
+ GeglProcessor *processor;
+
+ processor = GEGL_PROCESSOR (g_task_get_task_data (task));
+
+ if (g_task_return_error_if_cancelled (task))
+ goto done;
+
+ if (gegl_processor_work (processor, NULL))
+ return G_SOURCE_CONTINUE;
+
+ g_task_return_boolean (task, TRUE);
+
+ done:
+ return G_SOURCE_REMOVE;
+}
+
+
static GeglBuffer *
photos_base_item_load_buffer (PhotosBaseItem *self, GCancellable *cancellable, GError **error)
{
@@ -1122,27 +1143,6 @@ photos_base_item_pipeline_save_save (GObject *source_object, GAsyncResult *res,
}
-static gboolean
-photos_base_item_process_idle (gpointer user_data)
-{
- GTask *task = G_TASK (user_data);
- GeglProcessor *processor;
-
- processor = GEGL_PROCESSOR (g_task_get_task_data (task));
-
- if (g_task_return_error_if_cancelled (task))
- goto done;
-
- if (gegl_processor_work (processor, NULL))
- return G_SOURCE_CONTINUE;
-
- g_task_return_boolean (task, TRUE);
-
- done:
- return G_SOURCE_REMOVE;
-}
-
-
static void
photos_base_item_save_metadata_in_thread_func (GTask *task,
gpointer source_object,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]