summaryrefslogtreecommitdiff
path: root/libdocument/ev-document-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdocument/ev-document-factory.c')
-rw-r--r--libdocument/ev-document-factory.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libdocument/ev-document-factory.c b/libdocument/ev-document-factory.c
index 7e96fade..b1454c64 100644
--- a/libdocument/ev-document-factory.c
+++ b/libdocument/ev-document-factory.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
/*
- * Copyright (C) 2005, Red Hat, Inc.
+ * Copyright (C) 2005, Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -49,7 +49,7 @@ gdk_pixbuf_mime_type_list ()
continue;
mime_types = gdk_pixbuf_format_get_mime_types (format);
- result = g_list_prepend (result, mime_types);
+ result = g_list_prepend (result, mime_types);
}
g_slist_free (formats);
@@ -118,7 +118,7 @@ get_compression_from_mime_type (const gchar *mime_type)
* fast or slow MIME type detection. If a document could be created,
* @compression is filled in with the document's compression type.
* On error, %NULL is returned and @error filled in.
- *
+ *
* Returns: a new #EvDocument instance, or %NULL on error with @error filled in
*/
static EvDocument *
@@ -144,12 +144,12 @@ get_document_from_uri (const char *uri,
} else {
g_propagate_error (error, err);
}
-
+
return NULL;
}
document = ev_backends_manager_get_document (mime_type);
-
+
#ifdef ENABLE_PIXBUF
if (!document && mime_type_supported_by_gdk_pixbuf (mime_type))
document = ev_backends_manager_get_document ("image/*");
@@ -163,7 +163,7 @@ get_document_from_uri (const char *uri,
mime_desc = g_content_type_get_description (content_type);
g_set_error (error,
- EV_DOCUMENT_ERROR,
+ EV_DOCUMENT_ERROR,
EV_DOCUMENT_ERROR_INVALID,
_("File type %s (%s) is not supported"),
mime_desc ? mime_desc : "-", mime_type);
@@ -177,7 +177,7 @@ get_document_from_uri (const char *uri,
*compression = get_compression_from_mime_type (mime_type);
g_free (mime_type);
-
+
return document;
}
@@ -248,7 +248,7 @@ ev_document_factory_get_document (const char *uri, GError **error)
g_object_unref (document);
document = NULL;
}
-
+
/* Try again with slow mime detection */
g_clear_error (&err);
uri_unc = NULL;
@@ -273,7 +273,7 @@ ev_document_factory_get_document (const char *uri, GError **error)
g_object_unref (document);
return NULL;
}
-
+
result = ev_document_load (document, uri_unc ? uri_unc : uri, &err);
if (result == FALSE) {
if (err == NULL) {
@@ -294,7 +294,7 @@ ev_document_factory_get_document (const char *uri, GError **error)
g_propagate_error (error, err);
}
-
+
return document;
}
@@ -312,10 +312,10 @@ file_filter_add_mime_types (EvTypeInfo *info, GtkFileFilter *filter)
for (l = pixbuf_types; l; l = g_list_next (l)) {
gchar **mime_types = (gchar **)l->data;
gint j = 0;
-
+
while ((mime_type = mime_types[j++]))
gtk_file_filter_add_mime_type (filter, mime_type);
-
+
g_strfreev (mime_types);
}
g_list_free (pixbuf_types);
@@ -323,7 +323,7 @@ file_filter_add_mime_types (EvTypeInfo *info, GtkFileFilter *filter)
return;
}
#endif /* ENABLE_PIXBUF */
-
+
while ((mime_type = info->mime_types[i++]))
gtk_file_filter_add_mime_type (filter, mime_type);
}
@@ -334,9 +334,9 @@ file_filter_add_mime_types (EvTypeInfo *info, GtkFileFilter *filter)
* @document: a #EvDocument, or %NULL
*
* Adds some file filters to @chooser.
-
+
* Always add a "All documents" format.
- *
+ *
* If @document is not %NULL, adds a #GtkFileFilter for @document's MIME type.
*
* If @document is %NULL, adds a #GtkFileFilter for each document type that atril
@@ -354,7 +354,7 @@ ev_document_factory_add_filters (GtkWidget *chooser, EvDocument *document)
g_return_if_fail (document == NULL || EV_IS_DOCUMENT (document));
all_types = ev_backends_manager_get_all_types_info ();
-
+
default_filter = document_filter = filter = gtk_file_filter_new ();
gtk_file_filter_set_name (filter, _("All Documents"));
g_list_foreach (all_types, (GFunc)file_filter_add_mime_types, filter);