mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-09 18:54:04 +02:00
Add an "aborted" signal to abort a mount operation from the backend side.
* gmountoperation.[hc]: Add an "aborted" signal to abort a mount operation from the backend side. * gvolume.h: Add docs regarding the "aborted" signal. svn path=/trunk/; revision=7866
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2009-02-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gmountoperation.[hc]: Add an "aborted" signal to abort a
|
||||||
|
mount operation from the backend side.
|
||||||
|
|
||||||
|
* gvolume.h: Add docs regarding the "aborted" signal.
|
||||||
|
|
||||||
2009-02-13 Ryan Lortie <desrt@desrt.ca>
|
2009-02-13 Ryan Lortie <desrt@desrt.ca>
|
||||||
|
|
||||||
Bug 505042 – add file attribute for actually used file size in bytes
|
Bug 505042 – add file attribute for actually used file size in bytes
|
||||||
|
@@ -57,6 +57,7 @@ enum {
|
|||||||
ASK_PASSWORD,
|
ASK_PASSWORD,
|
||||||
ASK_QUESTION,
|
ASK_QUESTION,
|
||||||
REPLY,
|
REPLY,
|
||||||
|
ABORTED,
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -296,6 +297,26 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
|||||||
G_TYPE_NONE, 1,
|
G_TYPE_NONE, 1,
|
||||||
G_TYPE_MOUNT_OPERATION_RESULT);
|
G_TYPE_MOUNT_OPERATION_RESULT);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GMountOperation::aborted:
|
||||||
|
*
|
||||||
|
* Emitted by the backend when e.g. a device becomes unavailable
|
||||||
|
* while a mount operation is in progress.
|
||||||
|
*
|
||||||
|
* Implementations of GMountOperation should handle this signal
|
||||||
|
* by dismissing open password dialogs.
|
||||||
|
*
|
||||||
|
* Since: 2.20
|
||||||
|
*/
|
||||||
|
signals[ABORTED] =
|
||||||
|
g_signal_new (I_("aborted"),
|
||||||
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
|
G_SIGNAL_RUN_LAST,
|
||||||
|
G_STRUCT_OFFSET (GMountOperationClass, aborted),
|
||||||
|
NULL, NULL,
|
||||||
|
g_cclosure_marshal_VOID__VOID,
|
||||||
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GMountOperation:username:
|
* GMountOperation:username:
|
||||||
*
|
*
|
||||||
|
@@ -73,6 +73,8 @@ struct _GMountOperationClass
|
|||||||
void (* reply) (GMountOperation *op,
|
void (* reply) (GMountOperation *op,
|
||||||
GMountOperationResult result);
|
GMountOperationResult result);
|
||||||
|
|
||||||
|
void (* aborted) (GMountOperation *op);
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
/* Padding for future expansion */
|
/* Padding for future expansion */
|
||||||
void (*_g_reserved1) (void);
|
void (*_g_reserved1) (void);
|
||||||
@@ -86,7 +88,6 @@ struct _GMountOperationClass
|
|||||||
void (*_g_reserved9) (void);
|
void (*_g_reserved9) (void);
|
||||||
void (*_g_reserved10) (void);
|
void (*_g_reserved10) (void);
|
||||||
void (*_g_reserved11) (void);
|
void (*_g_reserved11) (void);
|
||||||
void (*_g_reserved12) (void);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GType g_mount_operation_get_type (void) G_GNUC_CONST;
|
GType g_mount_operation_get_type (void) G_GNUC_CONST;
|
||||||
|
@@ -85,7 +85,10 @@ G_BEGIN_DECLS
|
|||||||
* @get_mount: Gets a #GMount representing the mounted volume. Returns %NULL if the #GVolume is not mounted.
|
* @get_mount: Gets a #GMount representing the mounted volume. Returns %NULL if the #GVolume is not mounted.
|
||||||
* @can_mount: Returns %TRUE if the #GVolume can be mounted.
|
* @can_mount: Returns %TRUE if the #GVolume can be mounted.
|
||||||
* @can_eject: Checks if a #GVolume can be ejected.
|
* @can_eject: Checks if a #GVolume can be ejected.
|
||||||
* @mount_fn: Mounts a given #GVolume.
|
* @mount_fn: Mounts a given #GVolume.
|
||||||
|
* #GVolume implementations must emit the #GMountOperation::aborted
|
||||||
|
* signal before completing a mount operation that is aborted while
|
||||||
|
* awaiting input from the user through a #GMountOperation instance.
|
||||||
* @mount_finish: Finishes a mount operation.
|
* @mount_finish: Finishes a mount operation.
|
||||||
* @eject: Ejects a given #GVolume.
|
* @eject: Ejects a given #GVolume.
|
||||||
* @eject_finish: Finishes an eject operation.
|
* @eject_finish: Finishes an eject operation.
|
||||||
|
Reference in New Issue
Block a user