]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-attachment.c
[dvi] Use ANSI C rand() instead of random()
[evince.git] / libdocument / ev-attachment.c
index c4dd38d7addb4937a074ec070d96034e3838864f..0e9653dc4312910c61e13fc166398a2c5642cc89 100644 (file)
@@ -293,7 +293,7 @@ ev_attachment_save (EvAttachment *attachment,
        g_return_val_if_fail (EV_IS_ATTACHMENT (attachment), FALSE);
        g_return_val_if_fail (G_IS_FILE (file), FALSE);
 
-       output_stream = g_file_create (file, 0, NULL, &ioerror);
+       output_stream = g_file_replace (file, NULL, FALSE, 0, NULL, &ioerror);
        if (output_stream == NULL) {
                char *uri;
                
@@ -397,7 +397,7 @@ ev_attachment_open (EvAttachment *attachment,
        g_return_val_if_fail (EV_IS_ATTACHMENT (attachment), FALSE);
        
        if (!attachment->priv->app) {
-               app_info = g_app_info_get_default_for_type (attachment->priv->mime_type, TRUE);
+               app_info = g_app_info_get_default_for_type (attachment->priv->mime_type, FALSE);
                attachment->priv->app = app_info;
        }