summaryrefslogtreecommitdiff
path: root/libdocument/ev-file-helpers.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 /libdocument/ev-file-helpers.c
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'libdocument/ev-file-helpers.c')
-rw-r--r--libdocument/ev-file-helpers.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c
index 1826f8c3..9b22e93a 100644
--- a/libdocument/ev-file-helpers.c
+++ b/libdocument/ev-file-helpers.c
@@ -106,8 +106,8 @@ _ev_file_helpers_init (void)
void
_ev_file_helpers_shutdown (void)
-{
- if (tmp_dir != NULL)
+{
+ if (tmp_dir != NULL)
g_rmdir (tmp_dir);
g_free (tmp_dir);
@@ -339,11 +339,11 @@ ev_tmp_file_unlink (GFile *file)
if (!file)
return;
-
+
res = g_file_delete (file, NULL, &error);
if (!res) {
char *uri;
-
+
uri = g_file_get_uri (file);
g_warning ("Unable to delete temp file %s: %s\n", uri, error->message);
g_free (uri);
@@ -355,17 +355,17 @@ void
ev_tmp_uri_unlink (const gchar *uri)
{
GFile *file;
-
+
if (!uri)
return;
-
+
file = g_file_new_for_uri (uri);
if (!g_file_is_native (file)) {
g_warning ("Attempting to delete non native uri: %s\n", uri);
g_object_unref (file);
return;
}
-
+
ev_tmp_file_unlink (file);
g_object_unref (file);
}
@@ -407,7 +407,7 @@ ev_xfer_uri_simple (const char *from,
GFile *source_file;
GFile *target_file;
gboolean result;
-
+
if (!from)
return TRUE;
@@ -415,7 +415,7 @@ ev_xfer_uri_simple (const char *from,
source_file = g_file_new_for_uri (from);
target_file = g_file_new_for_uri (to);
-
+
result = g_file_copy (source_file, target_file,
G_FILE_COPY_TARGET_DEFAULT_PERMS |
G_FILE_COPY_OVERWRITE,
@@ -423,7 +423,7 @@ ev_xfer_uri_simple (const char *from,
g_object_unref (target_file);
g_object_unref (source_file);
-
+
return result;
}
@@ -464,7 +464,7 @@ get_mime_type_from_data (const gchar *uri, GError **error)
gchar *content_type, *mime_type;
file = g_file_new_for_uri (uri);
-
+
input_stream = g_file_read (file, NULL, error);
if (!input_stream) {
g_object_unref (file);
@@ -505,7 +505,7 @@ get_mime_type_from_data (const gchar *uri, GError **error)
*
* Note: on unknown MIME types, this may return NULL without @error
* being filled in.
- *
+ *
* Returns: a newly allocated string with the MIME type of the file at
* @uri, or %NULL on error or if the MIME type could not be determined
*/
@@ -532,7 +532,7 @@ static const char *compressor_cmds[] = {
static gchar *
compression_run (const gchar *uri,
EvCompressionType type,
- gboolean compress,
+ gboolean compress,
GError **error)
{
gchar *argv[N_ARGS];
@@ -659,7 +659,7 @@ ev_file_uncompress (const gchar *uri,
* @error: a #GError location to store an error, or %NULL
*
* Compresses the file at @uri.
-
+
* If @type is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.
*
* Otherwise, it returns the filename of a