aboutsummaryrefslogtreecommitdiff
path: root/src/nav.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2010-02-23 15:03:10 -0300
committerJorge Arellano Cid <jcid@dillo.org>2010-02-23 15:03:10 -0300
commitb3ebdb3213c020501fd8d3f47151fa5eb6fdb40b (patch)
tree2f382635d98356e678ec8de8f366328c1014618e /src/nav.c
parent60bfc32b189a03589b41ce8e8cfade8e276a558c (diff)
Handle vsource dpi inside a_Capi_open_url(); more orthogonality.
Also added better error handling.
Diffstat (limited to 'src/nav.c')
-rw-r--r--src/nav.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/nav.c b/src/nav.c
index 9d668804..107cdd09 100644
--- a/src/nav.c
+++ b/src/nav.c
@@ -587,27 +587,3 @@ void a_Nav_unref_buf(const DilloUrl *Url)
a_Capi_unref_buf(Url);
}
-/*
- * Send source to a dpi
- */
-void a_Nav_send_source(BrowserWindow *bw, const DilloUrl *url)
-{
- char *buf;
- int buf_size;
- DilloUrl *vs_url;
- Dstr *dstr_url;
-
- if (a_Nav_get_buf(url, &buf, &buf_size)) {
- dstr_url = dStr_new("dpi:/vsource/:");
- dStr_append(dstr_url, URL_STR(url));
-
- vs_url = a_Url_new(dstr_url->str, NULL);
- a_UIcmd_open_url_nt(bw, vs_url, 1);
- a_Url_free(vs_url);
- dStr_free(dstr_url, 1);
-
- /* send the page's source to this dpi connection */
- a_Capi_dpi_send_source(bw, url, buf, buf_size);
- a_Nav_unref_buf(url);
- }
-}