summaryrefslogtreecommitdiff
path: root/frontends/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/gtk')
-rw-r--r--frontends/gtk/download.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/frontends/gtk/download.c b/frontends/gtk/download.c
index 0bb5bb362..b981dce4b 100644
--- a/frontends/gtk/download.c
+++ b/frontends/gtk/download.c
@@ -749,11 +749,10 @@ static void nsgtk_download_store_create_item (struct gui_download_window *dl)
/**
* Wrapper to GSourceFunc-ify nsgtk_download_update.
*/
-static gboolean nsgtk_download_gsourcefunc__nsgtk_download_update(
- gpointer user_data)
+static gboolean
+nsgtk_download_gsourcefunc__nsgtk_download_update(gpointer user_data)
{
- bool *force_update = user_data;
- return nsgtk_download_update(*force_update);
+ return nsgtk_download_update(FALSE);
}
static struct gui_download_window *
@@ -839,7 +838,7 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui)
g_timeout_add(
UPDATE_RATE,
nsgtk_download_gsourcefunc__nsgtk_download_update,
- FALSE);
+ NULL);
}
nsgtk_downloads_list = g_list_prepend(nsgtk_downloads_list, download);