2009-04-10 Carlos Garcia Campos <carlosgc@gnome.org>
* properties/ev-properties-main.c: (ev_properties_get_pages):
Create and load the document based on the mime-type provided by
nautilus instead of using our own documents factory. Fixes bug
#533917.
svn path=/trunk/; revision=3595
+2009-04-10 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * properties/ev-properties-main.c: (ev_properties_get_pages):
+
+ Create and load the document based on the mime-type provided by
+ nautilus instead of using our own documents factory. Fixes bug
+ #533917.
+
2009-04-09 Benjamin Berg <benjamin@sipsolutions.net>
* backend/tiff/tiff-document.c: (tiff_document_render):
2009-04-09 Benjamin Berg <benjamin@sipsolutions.net>
* backend/tiff/tiff-document.c: (tiff_document_render):
EvDocument *document;
GList *pages = NULL;
NautilusFileInfo *file;
EvDocument *document;
GList *pages = NULL;
NautilusFileInfo *file;
+ gchar *uri = NULL;
+ gchar *mime_type = NULL;
GtkWidget *page, *label;
NautilusPropertyPage *property_page;
GtkWidget *page, *label;
NautilusPropertyPage *property_page;
/* okay, make the page */
uri = nautilus_file_info_get_uri (file);
/* okay, make the page */
uri = nautilus_file_info_get_uri (file);
- document = ev_document_factory_get_document (uri, &error);
+ mime_type = nautilus_file_info_get_mime_type (file);
+
+ document = ev_backends_manager_get_document (mime_type);
+ if (!document)
+ goto end;
+ ev_document_load (document, uri, &error);
if (error) {
g_error_free (error);
goto end;
}
if (error) {
g_error_free (error);
goto end;
}
- if (!document)
- goto end;
-
label = gtk_label_new (_("Document"));
page = ev_properties_view_new (uri);
ev_properties_view_set_info (EV_PROPERTIES_VIEW (page),
label = gtk_label_new (_("Document"));
page = ev_properties_view_new (uri);
ev_properties_view_set_info (EV_PROPERTIES_VIEW (page),