Add a GMount::pre-unmount signal

This is the per-mount analogon to GVolumeMonitor::mount-pre-unmount.
This commit is contained in:
Carlos Garnacho
2009-05-05 14:45:18 -04:00
committed by Matthias Clasen
parent 4ecec3b1c2
commit d89cc0d7cb
3 changed files with 21 additions and 0 deletions

View File

@@ -141,6 +141,22 @@ g_mount_base_init (gpointer g_class)
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
/**
* GMount::pre-unmount:
* @mount: the object on which the signal is emitted
*
* This signal is emitted when the #GMount is about to be
* unmounted.
*
* Since: 2.22.
**/
g_signal_new (I_("pre-unmount"),
G_TYPE_MOUNT,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GMountIface, pre_unmount),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
initialized = TRUE;
}