~vcs-imports/cairo-dock-plugins/trunk

« back to all changes in this revision

Viewing changes to file-manager-gnome/src/file-manager-vfs-gnome.c

  • Committer: fabounet
  • Date: 2008-01-03 19:50:56 UTC
  • Revision ID: vcs-imports@canonical.com-20080103195056-ggctillpksodn9cc
correction deplacement fichier + normalisation des themes d'applets + parabolic

Show diffs side-by-side

added added

removed removed

Lines of Context:
523
523
{
524
524
        g_print (" %s -> %s\n", cURI, cDirectoryURI);
525
525
        
526
 
        GnomeVFSResult r= gnome_vfs_move (cURI,
527
 
                cDirectoryURI,
 
526
        GnomeVFSURI *pVfsUri = gnome_vfs_uri_new (cURI);
 
527
        gchar *cFileName = gnome_vfs_uri_extract_short_name (pVfsUri);
 
528
        g_print ("pVfsUri : %s; cFileName : %s\n", pVfsUri->text, cFileName);
 
529
        
 
530
        GnomeVFSURI *pVfsDirUri = gnome_vfs_uri_new (cDirectoryURI);
 
531
        g_print ("pVfsDirUri : %s\n", pVfsDirUri->text);
 
532
        
 
533
        GnomeVFSURI *pVfsNewUri = gnome_vfs_uri_append_file_name (pVfsDirUri, cFileName);
 
534
        g_print ("pVfsNewUri : %s\n", pVfsNewUri->text);
 
535
        
 
536
        GnomeVFSResult r = gnome_vfs_move_uri (pVfsUri,
 
537
                pVfsNewUri,
528
538
                FALSE);
 
539
        
 
540
        gnome_vfs_uri_unref (pVfsUri);
 
541
        gnome_vfs_uri_unref (pVfsDirUri);
 
542
        gnome_vfs_uri_unref (pVfsNewUri);
 
543
        g_free (cFileName);
529
544
        return (r == GNOME_VFS_OK);
530
545
}
531
546