mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
mount-op: use gint64 instead of guint64 for time_left and bytes_left
Since those can be -1, they need to be signed. https://bugzilla.gnome.org/show_bug.cgi?id=682284
This commit is contained in:
parent
ac8c13d25c
commit
0d8a81b722
@ -243,8 +243,8 @@ show_processes (GMountOperation *op,
|
||||
static void
|
||||
show_unmount_progress (GMountOperation *op,
|
||||
const gchar *message,
|
||||
guint64 time_left,
|
||||
guint64 bytes_left)
|
||||
gint64 time_left,
|
||||
gint64 bytes_left)
|
||||
{
|
||||
/* nothing to do */
|
||||
}
|
||||
@ -387,7 +387,8 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
* GMountOperation::show-unmount-progress:
|
||||
* @op: a #GMountOperation:
|
||||
* @message: string containing a mesage to display to the user
|
||||
* @time_left: the estimated time left before the operation completes, or -1
|
||||
* @time_left: the estimated time left before the operation completes,
|
||||
* in microseconds, or -1
|
||||
* @bytes_left: the amount of bytes to be written before the operation
|
||||
* completes (or -1 if such amount is not known), or zero if the operation
|
||||
* is completed
|
||||
@ -418,7 +419,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_STRUCT_OFFSET (GMountOperationClass, show_unmount_progress),
|
||||
NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 3,
|
||||
G_TYPE_STRING, G_TYPE_UINT64, G_TYPE_UINT64);
|
||||
G_TYPE_STRING, G_TYPE_INT64, G_TYPE_INT64);
|
||||
|
||||
/**
|
||||
* GMountOperation:username:
|
||||
|
@ -82,8 +82,8 @@ struct _GMountOperationClass
|
||||
|
||||
void (* show_unmount_progress) (GMountOperation *op,
|
||||
const gchar *message,
|
||||
guint64 time_left,
|
||||
guint64 bytes_left);
|
||||
gint64 time_left,
|
||||
gint64 bytes_left);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
|
Loading…
Reference in New Issue
Block a user