summaryrefslogtreecommitdiff
path: root/thumbnailer/atril-thumbnailer.c
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 10:43:23 +0200
committerraveit65 <[email protected]>2019-07-01 17:07:40 +0200
commitaa24676651f8bd3e8b434f72d5aac98e84c0867d (patch)
tree37693766ecb4733c6061dcc2ddc26954fab5ca01 /thumbnailer/atril-thumbnailer.c
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'thumbnailer/atril-thumbnailer.c')
-rw-r--r--thumbnailer/atril-thumbnailer.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/thumbnailer/atril-thumbnailer.c b/thumbnailer/atril-thumbnailer.c
index a6875386..708e4800 100644
--- a/thumbnailer/atril-thumbnailer.c
+++ b/thumbnailer/atril-thumbnailer.c
@@ -164,7 +164,7 @@ atril_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int siz
EvPage *page;
page = ev_document_get_page (document, 0);
-
+
ev_document_get_page_size (document, 0, &width, &height);
rc = ev_render_context_new (page, 0, size / width);
@@ -172,7 +172,7 @@ atril_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int siz
rc, FALSE);
g_object_unref (rc);
g_object_unref (page);
-
+
if (pixbuf != NULL) {
if (gdk_pixbuf_save (pixbuf, thumbnail, "png", NULL, NULL)) {
g_object_unref (pixbuf);
@@ -181,7 +181,7 @@ atril_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int siz
g_object_unref (pixbuf);
}
-
+
return FALSE;
}
@@ -193,9 +193,9 @@ atril_thumbnail_pngenc_get_async (struct AsyncData *data)
data->output,
data->size);
ev_document_doc_mutex_unlock ();
-
+
g_idle_add ((GSourceFunc)gtk_main_quit, NULL);
-
+
return NULL;
}
@@ -239,7 +239,7 @@ main (int argc, char *argv[])
return -1;
}
-
+
g_option_context_free (context);
if (size < 1) {
@@ -275,7 +275,7 @@ main (int argc, char *argv[])
struct AsyncData data;
gtk_init (&argc, &argv);
-
+
data.document = document;
data.output = output;
data.size = size;
@@ -283,7 +283,7 @@ main (int argc, char *argv[])
g_thread_new ("EvThumbnailerAsyncRenderer",
(GThreadFunc) atril_thumbnail_pngenc_get_async,
&data);
-
+
gtk_main ();
g_object_unref (document);