diff options
author | Laurent Napias <[email protected]> | 2019-06-29 10:43:23 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-07-01 17:07:40 +0200 |
commit | aa24676651f8bd3e8b434f72d5aac98e84c0867d (patch) | |
tree | 37693766ecb4733c6061dcc2ddc26954fab5ca01 /libdocument/ev-attachment.c | |
parent | 6741c5db1e5c48c01b25bb7900dc40d48552925d (diff) | |
download | atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2 atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz |
Remove trailing whitespaces
Diffstat (limited to 'libdocument/ev-attachment.c')
-rw-r--r-- | libdocument/ev-attachment.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libdocument/ev-attachment.c b/libdocument/ev-attachment.c index ec8bd35a..bf7aede5 100644 --- a/libdocument/ev-attachment.c +++ b/libdocument/ev-attachment.c @@ -57,11 +57,11 @@ GQuark ev_attachment_error_quark (void) { static GQuark error_quark = 0; - + if (error_quark == 0) error_quark = g_quark_from_static_string ("ev-attachment-error-quark"); - + return error_quark; } @@ -174,7 +174,7 @@ ev_attachment_class_init (EvAttachmentClass *klass) g_object_class_install_property (g_object_class, PROP_MTIME, g_param_spec_ulong ("mtime", - "ModifiedTime", + "ModifiedTime", "The attachment modification date", 0, G_MAXULONG, 0, G_PARAM_WRITABLE | @@ -202,7 +202,7 @@ ev_attachment_class_init (EvAttachmentClass *klass) "The attachment data", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); - + g_object_class->finalize = ev_attachment_finalize; } @@ -296,28 +296,28 @@ ev_attachment_save (EvAttachment *attachment, output_stream = g_file_replace (file, NULL, FALSE, 0, NULL, &ioerror); if (output_stream == NULL) { char *uri; - + uri = g_file_get_uri (file); g_set_error (error, - EV_ATTACHMENT_ERROR, + EV_ATTACHMENT_ERROR, ioerror->code, _("Couldn't save attachment “%s”: %s"), - uri, + uri, ioerror->message); g_error_free (ioerror); g_free (uri); - + return FALSE; } - + written_bytes = g_output_stream_write (G_OUTPUT_STREAM (output_stream), attachment->priv->data, attachment->priv->size, NULL, &ioerror); if (written_bytes == -1) { char *uri; - + uri = g_file_get_uri (file); g_set_error (error, EV_ATTACHMENT_ERROR, @@ -325,7 +325,7 @@ ev_attachment_save (EvAttachment *attachment, _("Couldn't save attachment “%s”: %s"), uri, ioerror->message); - + g_output_stream_close (G_OUTPUT_STREAM (output_stream), NULL, NULL); g_error_free (ioerror); g_free (uri); @@ -336,7 +336,7 @@ ev_attachment_save (EvAttachment *attachment, g_output_stream_close (G_OUTPUT_STREAM (output_stream), NULL, NULL); return TRUE; - + } static gboolean @@ -376,12 +376,12 @@ ev_attachment_launch_app (EvAttachment *attachment, g_list_free (files); g_error_free (ioerror); - + return FALSE; } g_list_free (files); - + return TRUE; } @@ -395,7 +395,7 @@ ev_attachment_open (EvAttachment *attachment, gboolean retval = FALSE; g_return_val_if_fail (EV_IS_ATTACHMENT (attachment), FALSE); - + if (!attachment->priv->app) { app_info = g_app_info_get_default_for_type (attachment->priv->mime_type, FALSE); attachment->priv->app = app_info; @@ -407,7 +407,7 @@ ev_attachment_open (EvAttachment *attachment, 0, _("Couldn't open attachment “%s”"), attachment->priv->name); - + return FALSE; } |