Updates to GIO documentation. (#506395, Mikael Hermansson)
authorMathias Hasselmann <hasselmm@src.gnome.org>
Mon, 31 Dec 2007 10:00:52 +0000 (10:00 +0000)
committerMathias Hasselmann <hasselmm@src.gnome.org>
Mon, 31 Dec 2007 10:00:52 +0000 (10:00 +0000)
* gcontenttype.c: Describe memory management for return value of
g_content_types_get_registered(). Missing piece from #505815.
* gdrive.c, gmount.c, gvolumemonitor.c: Add more description to
GVolume, GDrive, GMounts, which hopefully gives the user less
confusions when using this API. Following explainations from
Alexander Larsson on gtk-devel-list.

svn path=/trunk/; revision=6222

gio/ChangeLog
gio/gcontenttype.c
gio/gdrive.c
gio/gmount.c
gio/gvolumemonitor.c

index b447dc4..dd6b584 100644 (file)
@@ -1,3 +1,14 @@
+2007-12-31  Mathias Hasselmann  <mathias@openismus.com>
+
+       Updates to GIO documentation. (#506395, Mikael Hermansson)
+
+       * gcontenttype.c: Describe memory management for return value of
+       g_content_types_get_registered(). Missing piece from #505815.
+       * gdrive.c, gmount.c, gvolumemonitor.c: Add more description to
+       GVolume, GDrive, GMounts, which hopefully gives the user less
+       confusions when using this API. Following explainations from
+       Alexander Larsson on gtk-devel-list.
+
 2007-12-30  Matthias Clasen  <mclasen@redhat.com> 
 
        * gfileinfo.c: Expand the long description.
index 31d5e83..0dfbeea 100644 (file)
@@ -840,8 +840,8 @@ enumerate_mimetypes_dir (const char *dir,
  * g_content_types_get_registered:
  * 
  * Gets a list of strings containing all the registered content types
- * known to the system.
- * 
+ * known to the system. The list and its data should be freed using 
+ * @g_list_foreach(list, g_free, NULL) and @g_list_free(list)
  * Returns: #GList of the registered content types.
  **/  
 GList *
index eec5948..ca79291 100644 (file)
  * @short_description: Virtual File System drive management
  * @include: gio.h
  * 
+ * #GDrive - this represent a piece of hardware connected to the machine.
+ * Its generally only created for removable hardware or hardware with
+ * removable media. 
+ *
  * #GDrive is a container class for #GVolume objects that stem from
  * the same piece of media. As such, #GDrive abstracts a drive with
  * (or without) removable media and provides operations for querying
index b6f0df1..8c0e0d1 100644 (file)
  * SECTION:gmount
  * @short_description: Mount management
  * @include: gio.h
- * 
+ * @see also: GVolume, GUnixMount
+ *
  * The #GMount interface represents user-visible mounts. Note, when 
  * porting from GnomeVFS, #GMount is the moral equivalent of #GnomeVFSVolume.
+ *
+ * #GMount is a "mounted" filesystem that you can access. Mounted is in
+ * quotes because its not the same as a unix mount, it might be a gvfs
+ * mount, but you can still access the files on it if you use GIO. Might or
+ * might not be related to a volume object.
  * 
  * Unmounting a #GMount instance is an asynchronous operation. For
  * more information about asynchronous operations, see #GAsyncReady
index 3aafee0..aaadcb3 100644 (file)
  * @include: gio.h
  * @see_also: #GDirectoryMonitor, #GFileMonitor
  * 
- * Monitors a mounted volume for changes.
- **/
+ * #GVolumeMonitor is for listing the user interesting devices and volumes
+ * on the computer. In other words, what a file selector or file manager
+ * would show in a sidebar. 
+**/
 
 G_DEFINE_TYPE (GVolumeMonitor, g_volume_monitor, G_TYPE_OBJECT);