[gnome-font-viewer] font-model: coding style fixes
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer] font-model: coding style fixes
- Date: Thu, 4 Jul 2019 23:09:55 +0000 (UTC)
commit 81b779b0920ec6c7b3be49f2de6c078fa42ed7b3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jul 4 14:23:40 2019 -0700
font-model: coding style fixes
src/font-model.c | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/src/font-model.c b/src/font-model.c
index d06b76f..210e4f4 100644
--- a/src/font-model.c
+++ b/src/font-model.c
@@ -223,15 +223,14 @@ create_thumbnail (ThumbInfoData *thumb_info)
g_clear_error (&error);
g_clear_object (&info);
- if (pixbuf != NULL)
- {
- GdkPixbuf *scaled = gdk_pixbuf_scale_simple (pixbuf,
- 128 * thumb_info->self->priv->scale_factor,
- 128 * thumb_info->self->priv->scale_factor,
- GDK_INTERP_BILINEAR);
- g_object_unref (pixbuf);
- pixbuf = scaled;
- }
+ if (pixbuf != NULL) {
+ GdkPixbuf *scaled = gdk_pixbuf_scale_simple (pixbuf,
+ 128 * thumb_info->self->priv->scale_factor,
+ 128 * thumb_info->self->priv->scale_factor,
+ GDK_INTERP_BILINEAR);
+ g_object_unref (pixbuf);
+ pixbuf = scaled;
+ }
return pixbuf;
}
@@ -300,9 +299,8 @@ ensure_thumbnails_job (GTask *task,
NULL);
g_free (filename);
- if (!g_file_test (thumb_path, G_FILE_TEST_IS_REGULAR)) {
+ if (!g_file_test (thumb_path, G_FILE_TEST_IS_REGULAR))
g_clear_pointer (&thumb_path, g_free);
- }
}
if (thumb_path != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]