diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-20 08:20:56 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-20 08:20:56 +0000 |
commit | c9154ec566b4b43d6ad075019442c0117193a2bc (patch) | |
tree | c32b19661cfd9fa05aee350c495a9fea669658eb /file.c | |
parent | remove gcc warnings (diff) | |
download | w3m-c9154ec566b4b43d6ad075019442c0117193a2bc.tar.gz w3m-c9154ec566b4b43d6ad075019442c0117193a2bc.zip |
[w3m-dev 02449] reimplemented meta refresh support
From: Tsutomu Okada <okada@furuno.co.jp>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.7 2001/11/16 22:02:00 ukai Exp $ */ +/* $Id: file.c,v 1.8 2001/11/20 08:20:56 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -3579,13 +3579,18 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env) } #ifdef USE_ALARM else if (!is_redisplay && refresh > 0 && MetaRefresh) { - alarm_sec = refresh; - alarm_once = TRUE; - alarm_event.cmd = FUNCNAME_goURL; - alarm_event.user_data = s_tmp->ptr; + setAlarmEvent(refresh, AL_IMPLICIT, FUNCNAME_goURL, s_tmp->ptr); } #endif } +#ifdef USE_ALARM + else if (!is_redisplay && refresh > 0 && MetaRefresh) { + tmp = Sprintf("Refresh (%d sec)", refresh); + push_str(obuf, 0, tmp, PC_ASCII); + flushline(h_env, obuf, envs[h_env->envc].indent, 0, h_env->limit); + setAlarmEvent(refresh, AL_IMPLICIT, FUNCNAME_reload, NULL); + } +#endif } return 1; case HTML_BASE: |