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 void
gm_fetch_handle_free(GmFetchHandle *g) { gm_fetch_handle_free(GmFetchHandle *g) {
GList *tmp; 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);
for (tmp = g->dest_uri; tmp; tmp = tmp->next) { g_free(g->cur_file_name);
gnome_vfs_uri_unref((GnomeVFSURI*)(tmp->data));
} 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_list_free(g->dest_uri);
g_free(g); g_free(g);
@ -268,22 +269,16 @@ gm_fetch_handle_free(GmFetchHandle *g) {
GmFetchHandle * GmFetchHandle *
gm_fetch_handle_create(GFunc cb, gpointer user_data) { gm_fetch_handle_create(GFunc cb, gpointer user_data) {
GmFetchHandle *g = g_new0(GmFetchHandle, 1); GmFetchHandle *g = g_new0(GmFetchHandle, 1);
g->cb = cb; g->cb = cb;
g->user_data = user_data; g->user_data = user_data;
g->prev_status = GNOME_VFS_XFER_PROGRESS_STATUS_OK; g->prev_status = GNOME_VFS_XFER_PROGRESS_STATUS_OK;
g->cur_phase = -1; g->cur_phase = -1;
g->prev_phase = -1; g->prev_phase = -1;
g->cur_file = -1; g->cur_file = -1;
g->prev_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; return g;
} }
@ -302,7 +297,7 @@ gm_fetch_progress(GnomeVFSAsyncHandle *handle,
g->bytes_copied = info->bytes_copied; g->bytes_copied = info->bytes_copied;
g->total_bytes_copied = info->total_bytes_copied; g->total_bytes_copied = info->total_bytes_copied;
g->status = info->status; g->status = info->status;
if (g->aborted) { if (g->aborted) {
g->cb(g, g->user_data); g->cb(g, g->user_data);
gm_fetch_handle_free(g); gm_fetch_handle_free(g);