summaryrefslogtreecommitdiff
path: root/backend/pixbuf
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 /backend/pixbuf
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'backend/pixbuf')
-rw-r--r--backend/pixbuf/pixbuf-document.c22
-rw-r--r--backend/pixbuf/pixbuf-document.h4
2 files changed, 13 insertions, 13 deletions
diff --git a/backend/pixbuf/pixbuf-document.c b/backend/pixbuf/pixbuf-document.c
index 065fe498..a4fe88ed 100644
--- a/backend/pixbuf/pixbuf-document.c
+++ b/backend/pixbuf/pixbuf-document.c
@@ -35,7 +35,7 @@ struct _PixbufDocument
EvDocument parent_instance;
GdkPixbuf *pixbuf;
-
+
gchar *uri;
};
@@ -46,7 +46,7 @@ static void pixbuf_document_document_thumbnails_iface_init (EvDocumentThumbnails
EV_BACKEND_REGISTER_WITH_CODE (PixbufDocument, pixbuf_document,
{
EV_BACKEND_IMPLEMENT_INTERFACE (EV_TYPE_DOCUMENT_THUMBNAILS,
- pixbuf_document_document_thumbnails_iface_init)
+ pixbuf_document_document_thumbnails_iface_init)
});
static gboolean
@@ -55,7 +55,7 @@ pixbuf_document_load (EvDocument *document,
GError **error)
{
PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document);
-
+
gchar *filename;
GdkPixbuf *pixbuf;
@@ -63,7 +63,7 @@ pixbuf_document_load (EvDocument *document,
filename = g_filename_from_uri (uri, NULL, error);
if (!filename)
return FALSE;
-
+
pixbuf = gdk_pixbuf_new_from_file (filename, error);
if (!pixbuf)
@@ -72,7 +72,7 @@ pixbuf_document_load (EvDocument *document,
pixbuf_document->pixbuf = pixbuf;
g_free (pixbuf_document->uri);
pixbuf_document->uri = g_strdup (uri);
-
+
return TRUE;
}
@@ -83,7 +83,7 @@ pixbuf_document_save (EvDocument *document,
{
PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document);
- return ev_xfer_uri_simple (pixbuf_document->uri, uri, error);
+ return ev_xfer_uri_simple (pixbuf_document->uri, uri, error);
}
static int
@@ -117,7 +117,7 @@ pixbuf_document_render (EvDocument *document,
(gdk_pixbuf_get_width (pixbuf_document->pixbuf) * rc->scale) + 0.5,
(gdk_pixbuf_get_height (pixbuf_document->pixbuf) * rc->scale) + 0.5,
GDK_INTERP_BILINEAR);
-
+
rotated_pixbuf = gdk_pixbuf_rotate_simple (scaled_pixbuf, 360 - rc->rotation);
g_object_unref (scaled_pixbuf);
@@ -134,7 +134,7 @@ pixbuf_document_finalize (GObject *object)
g_object_unref (pixbuf_document->pixbuf);
g_free (pixbuf_document->uri);
-
+
G_OBJECT_CLASS (pixbuf_document_parent_class)->finalize (object);
}
@@ -161,10 +161,10 @@ pixbuf_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document,
PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document);
GdkPixbuf *pixbuf, *rotated_pixbuf;
gint width, height;
-
+
width = (gint) (gdk_pixbuf_get_width (pixbuf_document->pixbuf) * rc->scale);
height = (gint) (gdk_pixbuf_get_height (pixbuf_document->pixbuf) * rc->scale);
-
+
pixbuf = gdk_pixbuf_scale_simple (pixbuf_document->pixbuf,
width, height,
GDK_INTERP_BILINEAR);
@@ -177,7 +177,7 @@ pixbuf_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document,
static void
pixbuf_document_thumbnails_get_dimensions (EvDocumentThumbnails *document,
- EvRenderContext *rc,
+ EvRenderContext *rc,
gint *width,
gint *height)
{
diff --git a/backend/pixbuf/pixbuf-document.h b/backend/pixbuf/pixbuf-document.h
index a4f677cd..8166facc 100644
--- a/backend/pixbuf/pixbuf-document.h
+++ b/backend/pixbuf/pixbuf-document.h
@@ -31,8 +31,8 @@ typedef struct _PixbufDocument PixbufDocument;
GType pixbuf_document_get_type (void) G_GNUC_CONST;
-G_MODULE_EXPORT GType register_atril_backend (GTypeModule *module);
-
+G_MODULE_EXPORT GType register_atril_backend (GTypeModule *module);
+
G_END_DECLS
#endif /* __PIXBUF_DOCUMENT_H__ */