Fixed indentation

This commit is contained in:
Jesse van den Kieboom 2006-01-08 16:33:48 +00:00
parent a24b6058f6
commit 2782ec6fd9
1 changed files with 19 additions and 24 deletions

View File

@ -248,19 +248,20 @@ gm_open_url(const gchar *url) {
void
gm_fetch_handle_free(GmFetchHandle *g) {
GList *tmp;
g_free(g->cur_file_name);
for (tmp = g->source_uri; tmp; tmp = tmp->next) {
gnome_vfs_uri_unref((GnomeVFSURI*)(tmp->data));
}
g_list_free(g->source_uri);
GList *tmp;
for (tmp = g->dest_uri; tmp; tmp = tmp->next) {
gnome_vfs_uri_unref((GnomeVFSURI*)(tmp->data));
}
g_free(g->cur_file_name);
for (tmp = g->source_uri; tmp; tmp = tmp->next) {
gnome_vfs_uri_unref((GnomeVFSURI*)(tmp->data));
}
g_list_free(g->source_uri);
for (tmp = g->dest_uri; tmp; tmp = tmp->next) {
gnome_vfs_uri_unref((GnomeVFSURI*)(tmp->data));
}
g_list_free(g->dest_uri);
g_free(g);
@ -268,22 +269,16 @@ gm_fetch_handle_free(GmFetchHandle *g) {
GmFetchHandle *
gm_fetch_handle_create(GFunc cb, gpointer user_data) {
GmFetchHandle *g = g_new0(GmFetchHandle, 1);
g->cb = cb;
g->user_data = user_data;
GmFetchHandle *g = g_new0(GmFetchHandle, 1);
g->cb = cb;
g->user_data = user_data;
g->prev_status = GNOME_VFS_XFER_PROGRESS_STATUS_OK;
g->cur_phase = -1;
g->prev_phase = -1;
g->cur_file = -1;
g->prev_file = -1;
g->source_uri = NULL;
g->dest_uri = NULL;
g->cur_file_name = NULL;
g->files_total = 0;
g->done = FALSE;
g->aborted = FALSE;
return g;
}
@ -302,7 +297,7 @@ gm_fetch_progress(GnomeVFSAsyncHandle *handle,
g->bytes_copied = info->bytes_copied;
g->total_bytes_copied = info->total_bytes_copied;
g->status = info->status;
if (g->aborted) {
g->cb(g, g->user_data);
gm_fetch_handle_free(g);