diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-15 16:35:46 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-15 16:35:46 +0000 |
commit | 563cc280e4be0d630216494acdca2602c5651418 (patch) | |
tree | e0bd9eb7ee70e4e6b3ae89f5c524bc8d72a49971 /frame.c | |
parent | [w3m-dev 03133] Re: w3mman.1 (diff) | |
download | w3m-563cc280e4be0d630216494acdca2602c5651418.tar.gz w3m-563cc280e4be0d630216494acdca2602c5651418.zip |
[w3m-dev 03132] Re: Reload image
* file.c (loadGeneralFile): b->type = "text/html"
* file.c (loadImageBuffer): comment out getImageSize()
image_flag = IMG_FLAG_AUTO
* file.c (openGeneralPagerBuffer): buf->type = "text/html"
* frame.c (resetFrameElement): if (buf->mailcap_source) ...
* frame.c (frame_download_source): if (buf->mailcap_source) ...
* main.c (vwSrc): #ifdef USE_IMAGE
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'frame.c')
-rw-r--r-- | frame.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: frame.c,v 1.12 2002/02/09 15:27:14 ukai Exp $ */ +/* $Id: frame.c,v 1.13 2002/03/15 16:35:46 ukai Exp $ */ #include "fm.h" #include "parsetagx.h" #include "myctype.h" @@ -342,7 +342,12 @@ resetFrameElement(union frameset_element *f_element, f_body->attr = F_BODY; f_body->name = f_name; f_body->url = parsedURL2Str(&buf->currentURL)->ptr; - if (buf->real_scheme == SCM_LOCAL) { + if (buf->mailcap_source) { + f_body->source = buf->mailcap_source; + f_body->flags |= FB_TODELETE; + buf->mailcap_source = NULL; + } + else if (buf->real_scheme == SCM_LOCAL) { f_body->source = buf->sourcefile; } else { @@ -404,7 +409,12 @@ frame_download_source(struct frame_body *b, ParsedURL *currentURL, b->url = parsedURL2Str(&buf->currentURL)->ptr; b->source = buf->sourcefile; b->type = buf->type; - if ((buf->real_scheme != SCM_LOCAL) + if (buf->mailcap_source) { + b->source = buf->mailcap_source; + b->flags |= FB_TODELETE; + buf->mailcap_source = NULL; + } + else if ((buf->real_scheme != SCM_LOCAL) #ifdef USE_IMAGE || (activeImage && !useExtImageViewer && buf->real_type && !strncasecmp(buf->real_type, "image/", 6)) |