Document that pre-unmount may not be emitted

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=636210
This commit is contained in:
Christian Dywan 2010-12-01 14:06:13 +01:00 committed by Philip Withnall
parent b8ccbd9a3c
commit 0ef7174e74
2 changed files with 8 additions and 2 deletions

View File

@ -101,9 +101,12 @@ g_mount_default_init (GMountInterface *iface)
* GMount::pre-unmount:
* @mount: the object on which the signal is emitted
*
* This signal is emitted when the #GMount is about to be
* This signal may be emitted when the #GMount is about to be
* unmounted.
*
* This signal depends on the backend and is only emitted if
* GIO was used to unmount.
*
* Since: 2.22
**/
g_signal_new (I_("pre-unmount"),

View File

@ -159,7 +159,10 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
* @volume_monitor: The volume monitor emitting the signal.
* @mount: a #GMount that is being unmounted.
*
* Emitted when a mount is about to be removed.
* May be emitted when a mount is about to be removed.
*
* This signal depends on the backend and is only emitted if
* GIO was used to unmount.
**/
signals[MOUNT_PRE_UNMOUNT] = g_signal_new (I_("mount-pre-unmount"),
G_TYPE_VOLUME_MONITOR,