]> www.fi.muni.cz Git - evince.git/blobdiff - djvu/djvu-document.c
Make CVS silent
[evince.git] / djvu / djvu-document.c
index 3814787545a3a5b5ed283365dcb204e22147c709..135d81cfa144bf97e75a5f2108f85fe00070eaf5 100644 (file)
 #include <gtk/gtk.h>
 #include <gdk-pixbuf/gdk-pixbuf-core.h>
 
-#include <libgnomevfs/gnome-vfs-uri.h>
-#include <libgnomevfs/gnome-vfs-utils.h>
-#include <libgnomevfs/gnome-vfs-ops.h>
-#include <libgnomevfs/gnome-vfs-xfer.h>
-
 #define SCALE_FACTOR 0.2
 
 enum {
@@ -105,31 +100,8 @@ djvu_document_save (EvDocument  *document,
                      GError     **error)
 {
        DjvuDocument *djvu_document = DJVU_DOCUMENT (document);
-       GnomeVFSResult result;
-       GnomeVFSURI *source_uri;
-       GnomeVFSURI *target_uri;
-       
-       if (!djvu_document->uri)
-               return FALSE;
-       
-       source_uri = gnome_vfs_uri_new (djvu_document->uri);
-       target_uri = gnome_vfs_uri_new (uri);
-
-       result = gnome_vfs_xfer_uri (source_uri, target_uri, 
-                                    GNOME_VFS_XFER_DEFAULT | GNOME_VFS_XFER_FOLLOW_LINKS,
-                                    GNOME_VFS_XFER_ERROR_MODE_ABORT,
-                                    GNOME_VFS_XFER_OVERWRITE_MODE_REPLACE,
-                                    NULL,
-                                    NULL);
-       gnome_vfs_uri_unref (target_uri);
-       gnome_vfs_uri_unref (source_uri);
-    
-       if (result != GNOME_VFS_OK)
-               g_set_error (error,
-                            EV_DOCUMENT_ERROR,
-                            0,
-                            gnome_vfs_result_to_string (result));                      
-       return (result == GNOME_VFS_OK);
+
+       return ev_xfer_uri_simple (djvu_document->uri, uri, error);
 }
 
 static int
@@ -293,7 +265,7 @@ djvu_document_thumbnails_get_thumbnail (EvDocumentThumbnails   *document,
        
        djvu_document_thumbnails_get_dimensions (document, page, width, &thumb_width, &thumb_height);
        
-       pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
+       pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8,
                                 thumb_width, thumb_height);
        gdk_pixbuf_fill (pixbuf, 0xffffffff);
        pixels = gdk_pixbuf_get_pixels (pixbuf);