[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>
This commit is contained in:
16
frame.c
16
frame.c
@@ -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))
|
||||
|
Reference in New Issue
Block a user