evince r3012 - in trunk: . libdocument



Author: carlosgc
Date: Sat Apr 19 10:22:44 2008
New Revision: 3012
URL: http://svn.gnome.org/viewvc/evince?rev=3012&view=rev

Log:
2008-04-19  Carlos Garcia Campos  <carlosgc gnome org>

	* libdocument/ev-document-factory.c: (get_document_from_uri):

	Use the pixbuf backend only when the mime type is not supported by
	any of the other backend so that tiff documents, for instance, are
	handled by the tiff backend instead of the pixbuf backend. fixes
	bug #520290.


Modified:
   trunk/ChangeLog
   trunk/libdocument/ev-document-factory.c

Modified: trunk/libdocument/ev-document-factory.c
==============================================================================
--- trunk/libdocument/ev-document-factory.c	(original)
+++ trunk/libdocument/ev-document-factory.c	Sat Apr 19 10:22:44 2008
@@ -180,13 +180,11 @@
 		return NULL;
 	}
 
+	document = ev_backends_manager_get_document (mime_type);
+	
 #ifdef ENABLE_PIXBUF
-	if (mime_type_supported_by_gdk_pixbuf (mime_type))
+	if (!document && mime_type_supported_by_gdk_pixbuf (mime_type))
 		document = ev_backends_manager_get_document ("image/*");
-	else
-		document = ev_backends_manager_get_document (mime_type);
-#else
-	document = ev_backends_manager_get_document (mime_type);
 #endif /* ENABLE_PIXBUF */
 
 	if (document == NULL) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]