diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-27 22:41:59 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-27 22:41:59 +0100 |
commit | e44bd09ac3a28823d9947c54949d115619003fe4 (patch) | |
tree | 66e3efcd35046d44c161fddabf5f7cb880b16424 /windows/download.c | |
parent | 68938664411ac2ee82e39e11fe855a6cd1b32c7c (diff) | |
download | netsurf-e44bd09ac3a28823d9947c54949d115619003fe4.tar.gz netsurf-e44bd09ac3a28823d9947c54949d115619003fe4.tar.bz2 |
update windows frontend to not use depricated warn_user API
Diffstat (limited to 'windows/download.c')
-rw-r--r-- | windows/download.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/windows/download.c b/windows/download.c index c2cda8fb8..b281ea76a 100644 --- a/windows/download.c +++ b/windows/download.c @@ -86,14 +86,14 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui) { if (downloading) { /* initial implementation */ - warn_user("1 download at a time please", 0); + win32_warning("1 download at a time please", 0); return NULL; } downloading = true; struct gui_download_window *w = malloc(sizeof(struct gui_download_window)); if (w == NULL) { - warn_user(messages_get("NoMemory"), 0); + win32_warning(messages_get("NoMemory"), 0); return NULL; } int total_size = download_context_get_total_length(ctx); @@ -108,7 +108,7 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui) filename = strdup(messages_get("UnknownFile")); } if (filename == NULL) { - warn_user(messages_get("NoMemory"), 0); + win32_warning(messages_get("NoMemory"), 0); free(w); return NULL; } @@ -119,14 +119,14 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui) domain = strdup(messages_get("UnknownHost")); } if (domain == NULL) { - warn_user(messages_get("NoMemory"), 0); + win32_warning(messages_get("NoMemory"), 0); free(filename); free(w); return NULL; } destination = malloc(PATH_MAX); if (destination == NULL) { - warn_user(messages_get("NoMemory"), 0); + win32_warning(messages_get("NoMemory"), 0); free(domain); free(filename); free(w); @@ -144,7 +144,7 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui) w->size = total_size; w->total_size = strdup(size); if (w->total_size == NULL) { - warn_user(messages_get("NoMemory"), 0); + win32_warning(messages_get("NoMemory"), 0); free(destination); free(domain); free(filename); @@ -163,7 +163,7 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui) w->window = gui; w->file = fopen(destination, "wb"); if (w->file == NULL) { - warn_user(messages_get("FileOpenWriteError"), destination); + win32_warning(messages_get("FileOpenWriteError"), destination); free(destination); free(domain); free(filename); @@ -175,7 +175,7 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui) download1 = w; if (nsws_download_window_up(w) == false) { - warn_user(messages_get("NoMemory"), 0); + win32_warning(messages_get("NoMemory"), 0); free(destination); free(domain); free(filename); |