mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
fix gtk download window dereferencing boolean as pointer
This commit is contained in:
parent
6e31dcaec4
commit
1f0dc9dd6e
@ -749,11 +749,10 @@ static void nsgtk_download_store_create_item (struct gui_download_window *dl)
|
|||||||
/**
|
/**
|
||||||
* Wrapper to GSourceFunc-ify nsgtk_download_update.
|
* Wrapper to GSourceFunc-ify nsgtk_download_update.
|
||||||
*/
|
*/
|
||||||
static gboolean nsgtk_download_gsourcefunc__nsgtk_download_update(
|
static gboolean
|
||||||
gpointer user_data)
|
nsgtk_download_gsourcefunc__nsgtk_download_update(gpointer user_data)
|
||||||
{
|
{
|
||||||
bool *force_update = user_data;
|
return nsgtk_download_update(FALSE);
|
||||||
return nsgtk_download_update(*force_update);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct gui_download_window *
|
static struct gui_download_window *
|
||||||
@ -839,7 +838,7 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui)
|
|||||||
g_timeout_add(
|
g_timeout_add(
|
||||||
UPDATE_RATE,
|
UPDATE_RATE,
|
||||||
nsgtk_download_gsourcefunc__nsgtk_download_update,
|
nsgtk_download_gsourcefunc__nsgtk_download_update,
|
||||||
FALSE);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
nsgtk_downloads_list = g_list_prepend(nsgtk_downloads_list, download);
|
nsgtk_downloads_list = g_list_prepend(nsgtk_downloads_list, download);
|
||||||
|
Loading…
Reference in New Issue
Block a user