[gnome-photos] export-dialog: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] export-dialog: Style fixes
- Date: Mon, 6 Nov 2017 15:28:44 +0000 (UTC)
commit c824270f2e487363494f7ff393c91f35ff6c7ba7
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Nov 6 15:25:10 2017 +0100
export-dialog: Style fixes
src/photos-export-dialog.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-export-dialog.c b/src/photos-export-dialog.c
index 91805ae..61c8147 100644
--- a/src/photos-export-dialog.c
+++ b/src/photos-export-dialog.c
@@ -18,6 +18,7 @@
* 02110-1301, USA.
*/
+
#include "config.h"
#include <glib.h>
@@ -125,17 +126,16 @@ photos_export_dialog_guess_sizes (GObject *source_object, GAsyncResult *res, gpo
PhotosBaseItem *item = PHOTOS_BASE_ITEM (source_object);
PhotosBaseItemSize full;
PhotosBaseItemSize reduced;
- gboolean success = TRUE;
+ gboolean success;
{
g_autoptr (GError) error = NULL;
- if (!photos_base_item_guess_save_sizes_finish (item, res, &full, &reduced, &error))
+ success = photos_base_item_guess_save_sizes_finish (item, res, &full, &reduced, &error);
+ if (error != NULL)
{
- success = FALSE;
-
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
- return;
+ goto out;
g_warning ("Unable to guess sizes: %s", error->message);
}
@@ -167,6 +167,9 @@ photos_export_dialog_guess_sizes (GObject *source_object, GAsyncResult *res, gpo
}
photos_export_dialog_show_size_options (self, self->reduced_zoom > 0.0, FALSE);
+
+ out:
+ return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]