Rename ambiguous struct

This commit is contained in:
Lucas Schwiderski 2022-02-03 12:21:00 +01:00 committed by Philip Withnall
parent eeb2bcf5a9
commit 966f887cf9

View File

@ -6621,12 +6621,12 @@ typedef struct {
CopyAsyncData *data; CopyAsyncData *data;
goffset current_num_bytes; goffset current_num_bytes;
goffset total_num_bytes; goffset total_num_bytes;
} ProgressData; } CopyProgressData;
static gboolean static gboolean
copy_async_progress_in_main (gpointer user_data) copy_async_progress_in_main (gpointer user_data)
{ {
ProgressData *progress = user_data; CopyProgressData *progress = user_data;
CopyAsyncData *data = progress->data; CopyAsyncData *data = progress->data;
data->progress_cb (progress->current_num_bytes, data->progress_cb (progress->current_num_bytes,
@ -6643,9 +6643,9 @@ copy_async_progress_callback (goffset current_num_bytes,
{ {
GTask *task = user_data; GTask *task = user_data;
CopyAsyncData *data = g_task_get_task_data (task); CopyAsyncData *data = g_task_get_task_data (task);
ProgressData *progress; CopyProgressData *progress;
progress = g_new (ProgressData, 1); progress = g_new (CopyProgressData, 1);
progress->data = data; progress->data = data;
progress->current_num_bytes = current_num_bytes; progress->current_num_bytes = current_num_bytes;
progress->total_num_bytes = total_num_bytes; progress->total_num_bytes = total_num_bytes;