diff options
author | corvid <corvid@lavabit.com> | 2011-09-09 22:46:26 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-09-09 22:46:26 +0000 |
commit | 385da8286ca8f001a6f734dd322e5957ba50b63b (patch) | |
tree | cb8efd5ffe7330e923c46dfd417f0c77356856a3 /src/nav.c | |
parent | 453b40b9ac2cab77f711286a0d7bd05197ec9499 (diff) |
tiny a_Web_new() cleanup
Diffstat (limited to 'src/nav.c')
-rw-r--r-- | src/nav.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -232,8 +232,7 @@ static void Nav_open_url(BrowserWindow *bw, const DilloUrl *url, // a_Menu_pagemarks_new(bw); - Web = a_Web_new(url, requester); - Web->bw = bw; + Web = a_Web_new(bw, url, requester); Web->flags |= WEB_RootUrl; if ((ClientKey = a_Capi_open_url(Web, NULL, NULL)) != 0) { a_Bw_add_client(bw, ClientKey, 1); @@ -566,8 +565,7 @@ static void Nav_save_cb(int Op, CacheClient_t *Client) void a_Nav_save_url(BrowserWindow *bw, const DilloUrl *url, const char *filename) { - DilloWeb *Web = a_Web_new(url, NULL); - Web->bw = bw; + DilloWeb *Web = a_Web_new(bw, url, NULL); Web->filename = dStrdup(filename); Web->flags |= WEB_Download; /* TODO: keep track of this client */ |