[gnome-photos] base-item: Style fix



commit 25c72a4945aaa974a5cf2033ba097214fe3faa7b
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Sep 22 15:25:13 2017 +0200

    base-item: Style fix
    
    Don't mix private and public methods.

 src/photos-base-item.c |   72 ++++++++++++++++++++++++------------------------
 1 files changed, 36 insertions(+), 36 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 259fd1a..2b1fdfc 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -2177,6 +2177,42 @@ photos_base_item_save_buffer_zoom (GObject *source_object, GAsyncResult *res, gp
 
 
 static void
+photos_base_item_save_load (GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+  PhotosBaseItem *self = PHOTOS_BASE_ITEM (source_object);
+  GCancellable *cancellable;
+  GError *error;
+  GTask *task = G_TASK (user_data);
+  GeglBuffer *buffer = NULL;
+  GeglNode *graph = NULL;
+  PhotosBaseItemSaveData *data;
+
+  cancellable = g_task_get_cancellable (task);
+  data = (PhotosBaseItemSaveData *) g_task_get_task_data (task);
+
+  error = NULL;
+  graph = photos_base_item_load_finish (self, res, &error);
+  if (error != NULL)
+    {
+      g_task_return_error (task, error);
+      goto out;
+    }
+
+  buffer = photos_gegl_get_buffer_from_node (graph, NULL);
+  photos_gegl_buffer_zoom_async (buffer,
+                                 data->zoom,
+                                 cancellable,
+                                 photos_base_item_save_buffer_zoom,
+                                 g_object_ref (task));
+
+ out:
+  g_clear_object (&buffer);
+  g_clear_object (&graph);
+  g_object_unref (task);
+}
+
+
+static void
 photos_base_item_save_to_stream_file_delete (GObject *source_object, GAsyncResult *res, gpointer user_data)
 {
   GError *error;
@@ -3984,42 +4020,6 @@ photos_base_item_refresh (PhotosBaseItem *self)
 }
 
 
-static void
-photos_base_item_save_load (GObject *source_object, GAsyncResult *res, gpointer user_data)
-{
-  PhotosBaseItem *self = PHOTOS_BASE_ITEM (source_object);
-  GCancellable *cancellable;
-  GError *error;
-  GTask *task = G_TASK (user_data);
-  GeglBuffer *buffer = NULL;
-  GeglNode *graph = NULL;
-  PhotosBaseItemSaveData *data;
-
-  cancellable = g_task_get_cancellable (task);
-  data = (PhotosBaseItemSaveData *) g_task_get_task_data (task);
-
-  error = NULL;
-  graph = photos_base_item_load_finish (self, res, &error);
-  if (error != NULL)
-    {
-      g_task_return_error (task, error);
-      goto out;
-    }
-
-  buffer = photos_gegl_get_buffer_from_node (graph, NULL);
-  photos_gegl_buffer_zoom_async (buffer,
-                                 data->zoom,
-                                 cancellable,
-                                 photos_base_item_save_buffer_zoom,
-                                 g_object_ref (task));
-
- out:
-  g_clear_object (&buffer);
-  g_clear_object (&graph);
-  g_object_unref (task);
-}
-
-
 void
 photos_base_item_save_async (PhotosBaseItem *self,
                              GFile *dir,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]