diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2010-02-17 13:54:58 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2010-02-17 13:54:58 -0300 |
commit | f8d6d864ed3b9bd82564b73ef264bd834f2e1bf2 (patch) | |
tree | ae2d1e28f3da13a1b239d36f7152f8d86550447b /src/uicmd.cc | |
parent | e38ffe05b755b187db244ca65109adaaec52ee48 (diff) |
Add the a_Capi_dpi_send_data() function
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r-- | src/uicmd.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc index 0d954c68..3bf7ddd8 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -1000,16 +1000,13 @@ void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr) /* * Show a text window with the URL's source */ -void a_UIcmd_view_page_source(const DilloUrl *url) +void a_UIcmd_view_page_source(BrowserWindow *bw, const DilloUrl *url) { - char *buf; - int buf_size; + DilloUrl *vs_url; - if (a_Nav_get_buf(url, &buf, &buf_size)) { - void *vWindow = a_Dialog_make_text_window(buf, "View Page source"); - a_Nav_unref_buf(url); - a_Dialog_show_text_window(vWindow); - } + vs_url = a_Url_new("dpi:/vsource/", NULL); + a_UIcmd_open_url_nt(bw, vs_url, 1); + a_Url_free(vs_url); } /* |