[gnome-photos] application, base-item: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application, base-item: Style fixes
- Date: Wed, 23 Dec 2015 19:38:49 +0000 (UTC)
commit adcd0be95ea559f0c9faf3ff5c75be8019574bd1
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Dec 17 16:55:29 2015 +0100
application, base-item: Style fixes
src/photos-application.c | 3 +--
src/photos-base-item.c | 6 ++----
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index e68bb9a..7f6a9a3 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -576,8 +576,7 @@ photos_application_edit_cancel_process (GObject *source_object, GAsyncResult *re
GError *error = NULL;
PhotosBaseItem *item = PHOTOS_BASE_ITEM (source_object);
- photos_base_item_process_finish (item, res, &error);
- if (error != NULL)
+ if (!photos_base_item_process_finish (item, res, &error))
{
g_warning ("Unable to process item: %s", error->message);
g_error_free (error);
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 8bebdc0..2d4cfca 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -926,16 +926,14 @@ photos_base_item_save_save_to_stream (GObject *source_object, GAsyncResult *res,
{
GTask *task = G_TASK (user_data);
GError *error = NULL;
- gboolean result;
- result = gdk_pixbuf_save_to_stream_finish (res, &error);
- if (error != NULL)
+ if (!gdk_pixbuf_save_to_stream_finish (res, &error))
{
g_task_return_error (task, error);
goto out;
}
- g_task_return_boolean (task, result);
+ g_task_return_boolean (task, TRUE);
out:
g_object_unref (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]