summaryrefslogtreecommitdiff
path: root/libdocument/ev-backends-manager.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-backends-manager.c
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'libdocument/ev-backends-manager.c')
-rw-r--r--libdocument/ev-backends-manager.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libdocument/ev-backends-manager.c b/libdocument/ev-backends-manager.c
index 53a60282..a690675b 100644
--- a/libdocument/ev-backends-manager.c
+++ b/libdocument/ev-backends-manager.c
@@ -100,7 +100,7 @@ ev_backends_manager_load_backend (const gchar *file)
info->resident = g_key_file_get_boolean (backend_file, EV_BACKENDS_GROUP,
"Resident", NULL);
-
+
info->type_desc = g_key_file_get_locale_string (backend_file, EV_BACKENDS_GROUP,
"TypeDescription", NULL, NULL);
if (!info->type_desc) {
@@ -146,7 +146,7 @@ ev_backends_manager_load (void)
while ((dirent = g_dir_read_name (dir))) {
EvBackendInfo *info;
gchar *file;
-
+
if (!g_str_has_suffix (dirent, EV_BACKENDS_EXTENSION))
continue;
@@ -156,7 +156,7 @@ ev_backends_manager_load (void)
if (!info)
continue;
-
+
ev_backends_list = g_list_prepend (ev_backends_list, info);
}
@@ -205,9 +205,9 @@ ev_backends_manager_get_backend_info (const gchar *mime_type)
EvBackendInfo *info;
gint i = 0;
const char *mime;
-
+
info = (EvBackendInfo *)l->data;
-
+
while ((mime = info->mime_types[i++])) {
if (g_ascii_strcasecmp (mime, mime_type) == 0)
return info;
@@ -229,12 +229,12 @@ ev_backends_manager_get_document (const gchar *mime_type)
if (!info->module) {
gchar *path;
-
+
path = g_module_build_path (backends_dir(), info->module_name);
info->module = G_TYPE_MODULE (ev_module_new (path, info->resident));
g_free (path);
}
-
+
if (!g_type_module_use (info->module)) {
g_warning ("Cannot load backend '%s' since file '%s' cannot be read.",
info->module_name,