[gnome-photos] base-item, utils: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-item, utils: Style fixes
- Date: Wed, 11 Nov 2015 15:51:10 +0000 (UTC)
commit 47e21e69a6cd3ef4efffdf8d3424e87fccabb809
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 11 14:05:26 2015 +0100
base-item, utils: Style fixes
src/photos-base-item.c | 6 +++---
src/photos-utils.c | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index ae1ae1c..11616ae 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -331,20 +331,20 @@ photos_base_item_create_thumbnail_in_thread_func (gpointer data, gpointer user_d
PhotosBaseItem *self;
GCancellable *cancellable;
GError *error;
- gboolean op_res;
+ gboolean result;
self = PHOTOS_BASE_ITEM (g_task_get_source_object (task));
cancellable = g_task_get_cancellable (task);
error = NULL;
- op_res = PHOTOS_BASE_ITEM_GET_CLASS (self)->create_thumbnail (self, cancellable, &error);
+ result = PHOTOS_BASE_ITEM_GET_CLASS (self)->create_thumbnail (self, cancellable, &error);
if (error != NULL)
{
g_task_return_error (task, error);
goto out;
}
- g_task_return_boolean (task, op_res);
+ g_task_return_boolean (task, result);
out:
g_object_unref (task);
diff --git a/src/photos-utils.c b/src/photos-utils.c
index 1f8c6ab..29c44b6 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -219,9 +219,11 @@ GdkPixbuf *
photos_utils_create_pixbuf_from_node (GeglNode *node)
{
GdkPixbuf *pixbuf = NULL;
+ GeglNode *graph;
GeglNode *save_pixbuf;
- save_pixbuf = gegl_node_new_child (gegl_node_get_parent (node),
+ graph = gegl_node_get_parent (node);
+ save_pixbuf = gegl_node_new_child (graph,
"operation", "gegl:save-pixbuf",
"pixbuf", &pixbuf,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]