~ubuntu-branches/ubuntu/trusty/pcmanfm/trusty-proposed

« back to all changes in this revision

Viewing changes to src/vfs/vfs-file-task.c

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Lee, Lu, Chao-Ming (Tetralet), Andrew Lee
  • Date: 2006-12-26 23:28:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061226232833-8d2ooh0v2m772zlc
Tags: 0.3.2.2-1
[ Lu, Chao-Ming (Tetralet) ]
* New upstream release 0.3.2.2.
  - Block unnecessary signal handlers to fix the performance problem
    caused when doing invert selection.
  - Fix a segfault in on_file_propertiesDlg_response triggered on 
    chown.
  - Fix let to avoid SegFault when file monitoring.
  - Mark some functions as static to avoid conflicts.
  - Invoke vfs_file_monitor_remove() with care.
  - Fix #ifdef EACCESS for FreeBSD.
  - Little fix for opening terminal with popup menu of desktop.
  - Skip desktop window in Alt+Tab.
* Applied a patch for "FTBFS on GNU/kFreeBSD (due to unsatisfied 
  Build-Depends on libhal-dev)" by 
  Petr Salinger <Petr.Salinger@seznam.cz> (Closes:#404050)

[ Andrew Lee ]
* Taken a entry from Enrico Zini's blog to README.Debian for how to
  replace nautilus with pcmanfm and provide genconf.sh 

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    return FALSE;
72
72
}
73
73
 
74
 
void call_state_callback( VFSFileTask* task,
 
74
static void call_state_callback( VFSFileTask* task,
75
75
                          VFSFileTaskState state )
76
76
{
77
77
    task->state = state;
84
84
    }
85
85
}
86
86
 
87
 
gboolean should_abort( VFSFileTask* task )
 
87
static gboolean should_abort( VFSFileTask* task )
88
88
{
89
89
    if ( task->state == VFS_FILE_TASK_QUERY_ABORT )
90
90
    {
102
102
* skip this file, overwrite existing file, or cancel all file operation.
103
103
* The returned string is the new destination file choosed by the user
104
104
*/
 
105
static 
105
106
gboolean check_overwrite( VFSFileTask* task,
106
107
                          const gchar* dest_file,
107
108
                          gboolean* dest_exists,
408
409
        task->current_dest = dest_file = new_dest_file;
409
410
 
410
411
    result = rename( src_file, dest_file );
411
 
    chmod( dest_file, file_stat.st_mode );
412
412
 
413
413
    if ( result != 0 )
414
414
    {
420
420
            return ;
421
421
        }
422
422
    }
 
423
    else
 
424
        chmod( dest_file, file_stat.st_mode );
423
425
 
424
426
    task->progress += file_stat.st_size;
425
427
    call_progress_callback( task );