~ubuntu-branches/ubuntu/dapper/file-roller/dapper-updates

« back to all changes in this revision

Viewing changes to src/fr-command-cfile.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-12-13 00:19:53 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213001953-0klipgnhk6vikhrt
Tags: 2.13.2-0ubuntu1
* New upstream version:
  - Fixed bug #323713: "Save as" should default to current archive filename
    (Ubuntu: #20132)
  - Fixed bug #315069: file-roller: drag 'n drop doesn't work for more
    than 1 file.
  - Fixed bug #323534: Passwords improperly escaped for zip files
  - Do not open a progress dialog when dragging files, use a progressbar
    in the statusbar instead.
  - Fixed bug #316364: Nautilus dependency should be optional
  - Fixed bug #311821: ascending and descending indicators are opposite
    from expected.
  - Fixed bug #317423: Conflicting mnemonic in "Extract" dialog.
  - Fixed bug #323068: file-roller fails in chosing extract-to directory
  - Fixed bug #322197: Improve Naming Filename when create new Archive file
  - Fixed bug #316564: needs unzip AND zip
    (Ubuntu: #15595)
  - Simplified the add dialog populating the file type combobox with the
    extensions instead of the descriptions.
  - Set progress dialog display delay to 1 second.
  - More HIG compliant progress dialog.
  - Use a single command execution to add many files and folders to an
    archive to speed up the operation.
  - Allow to stop creation of a new archive.
  - Correctly associate fr to 7zip files.
* debian/patches/03_lp-autoconf.patch:
  - updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
#include "file-data.h"
35
35
#include "file-utils.h"
 
36
#include "glib-utils.h"
36
37
#include "fr-command.h"
37
38
#include "fr-command-cfile.h"
38
39
 
115
116
        fdata = file_data_new ();
116
117
 
117
118
        fields = split_line (line, 2);
118
 
        fdata->size = atoll (fields[1]);
 
119
        fdata->size = g_ascii_strtoull (fields[1], NULL, 10);
119
120
        g_strfreev (fields);
120
121
 
121
 
        if (fdata->size == -1)
 
122
        if (fdata->size == 0)
122
123
                fdata->size = get_file_size (comm->filename);
123
124
 
124
125
        filename = get_uncompressed_name_from_archive (comm, comm->filename);
551
552
        fr_command_construct (comm, process, filename);
552
553
        FR_COMMAND_CFILE (comm)->compress_prog = prog;
553
554
 
 
555
        if (prog == FR_COMPRESS_PROGRAM_GZIP)
 
556
                comm->file_type = FR_FILE_TYPE_GZIP;
 
557
        else if (prog == FR_COMPRESS_PROGRAM_BZIP)
 
558
                comm->file_type = FR_FILE_TYPE_BZIP;
 
559
        else if (prog == FR_COMPRESS_PROGRAM_BZIP2)
 
560
                comm->file_type = FR_FILE_TYPE_BZIP2;
 
561
        else if (prog == FR_COMPRESS_PROGRAM_COMPRESS)
 
562
                comm->file_type = FR_FILE_TYPE_COMPRESS;
 
563
        else if (prog == FR_COMPRESS_PROGRAM_LZOP)
 
564
                comm->file_type = FR_FILE_TYPE_LZOP;
 
565
 
554
566
        return comm;
555
567
}