[gnome-photos/wip/rishi/guess-sizes: 1/3] base-item: Use more descriptive names instead of out_size



commit c687ac14d36f185261ed172704be1692fe9c7d02
Author: Rafael Fonseca <r4f4rfs gmail com>
Date:   Mon Jun 27 15:06:11 2016 +0200

    base-item: Use more descriptive names instead of out_size

 src/photos-base-item.c |   24 ++++++++++++------------
 src/photos-base-item.h |    4 ++--
 2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index ff01736..6dc1851 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -850,8 +850,8 @@ photos_base_item_file_query_info (GObject *source_object, GAsyncResult *res, gpo
 static void
 photos_base_item_guess_save_sizes_from_buffer (GeglBuffer *buffer,
                                                const gchar *mime_type,
-                                               gsize *out_size,
-                                               gsize *out_size_1,
+                                               gsize *full_size,
+                                               gsize *reduced_size,
                                                GCancellable *cancellable)
 {
   GeglNode *buffer_source;
@@ -881,10 +881,10 @@ photos_base_item_guess_save_sizes_from_buffer (GeglBuffer *buffer,
   gegl_node_process (guess_sizes);
 
   gegl_node_get (guess_sizes, "size", &sizes[0], "size-1", &sizes[1], NULL);
-  if (out_size != NULL)
-    *out_size = sizes[0];
-  if (out_size_1 != NULL)
-    *out_size_1 = sizes[1];
+  if (full_size != NULL)
+    *full_size = sizes[0];
+  if (reduced_size != NULL)
+    *reduced_size = sizes[1];
 
   g_object_unref (graph);
 }
@@ -2330,8 +2330,8 @@ photos_base_item_guess_save_sizes_async (PhotosBaseItem *self,
 gboolean
 photos_base_item_guess_save_sizes_finish (PhotosBaseItem *self,
                                           GAsyncResult *res,
-                                          gsize *out_size,
-                                          gsize *out_size_1,
+                                          gsize *full_size,
+                                          gsize *reduced_size,
                                           GError **error)
 {
   GTask *task = G_TASK (res);
@@ -2349,10 +2349,10 @@ photos_base_item_guess_save_sizes_finish (PhotosBaseItem *self,
 
   ret_val = TRUE;
 
-  if (out_size != NULL)
-    *out_size = sizes[0];
-  if (out_size_1 != NULL)
-    *out_size_1 = sizes[1];
+  if (full_size != NULL)
+    *full_size = sizes[0];
+  if (reduced_size != NULL)
+    *reduced_size = sizes[1];
 
  out:
   return ret_val;
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index 86593a4..281ba34 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -176,8 +176,8 @@ void                photos_base_item_guess_save_sizes_async  (PhotosBaseItem *se
 
 gboolean            photos_base_item_guess_save_sizes_finish (PhotosBaseItem *self,
                                                               GAsyncResult *res,
-                                                              gsize *out_size,
-                                                              gsize *out_size_1,
+                                                              gsize *full_size,
+                                                              gsize *reduced_size,
                                                               GError **error);
 
 gboolean            photos_base_item_is_collection           (PhotosBaseItem *self);


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