~attente/glib/gbytesicon

« back to all changes in this revision

Viewing changes to docs/reference/gio/html/ch30.html

  • Committer: Package Import Robot
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2012-11-28 14:38:35 UTC
  • mfrom: (172.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20121128143835-at37o4ozls05rkgf
Tags: 2.34.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
</tr></table>
22
22
<div class="chapter">
23
23
<div class="titlepage"><div><div><h2 class="title">
24
 
<a name="idp37588768"></a>Migrating from GnomeVFS to GIO</h2></div></div></div>
 
24
<a name="idp6012544"></a>Migrating from GnomeVFS to GIO</h2></div></div></div>
25
25
<div class="toc"><dl>
26
 
<dt><span class="section"><a href="ch30.html#idp35381472">Trash handling</a></span></dt>
 
26
<dt><span class="section"><a href="ch30.html#idp15312896">Trash handling</a></span></dt>
27
27
<dt><span class="section"><a href="ch30s02.html">Operations on multiple files</a></span></dt>
28
28
<dt><span class="section"><a href="ch30s03.html">Mime monitoring</a></span></dt>
29
29
</dl></div>
96
96
</div>
97
97
<br class="table-break"><div class="section">
98
98
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
99
 
<a name="idp35381472"></a>Trash handling</h2></div></div></div>
 
99
<a name="idp15312896"></a>Trash handling</h2></div></div></div>
100
100
<p>
101
101
        The handling of trashed files has been changed in GIO, compared
102
102
        to gnome-vfs. gnome-vfs has a home-grown trash implementation that 
204
204
      </p>
205
205
<p>
206
206
        Moving a file to the trash is much simpler with GIO. Instead of
207
 
        using <code class="function">gnome_vfs_find_directory()</code> with <code class="literal">GNOME_VFS_DIRECTORY_KIND_TRASH</code> 
 
207
        using <a href="/usr/share/gtk-doc/html/gnome-vfs-2.0/gnome-vfs-2.0-gnome-vfs-directory-find-ops.html#gnome-vfs-find-directory"><code class="function">gnome_vfs_find_directory()</code></a> with <a href="/usr/share/gtk-doc/html/gnome-vfs-2.0/gnome-vfs-2.0-gnome-vfs-directory-find-ops.html#GNOME-VFS-DIRECTORY-KIND-TRASH:CAPS"><code class="literal">GNOME_VFS_DIRECTORY_KIND_TRASH</code></a> 
208
208
        to find out where to move the trashed file, just use the <a class="link" href="GFile.html#g-file-trash" title="g_file_trash ()"><code class="function">g_file_trash()</code></a>
209
209
        function.
210
210
      </p>