summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-09-10 21:44:11 +0000
committerJames Bursa <james@netsurf-browser.org>2003-09-10 21:44:11 +0000
commitf33b3e6f52ea20dd1262bafdb44700b34e7b703e (patch)
tree4d798370feac2bd92822a3317fa8f0bda26eaa49 /content
parent9c2e6492908bf6fd750f11e524eee34add181def (diff)
downloadnetsurf-f33b3e6f52ea20dd1262bafdb44700b34e7b703e.tar.gz
netsurf-f33b3e6f52ea20dd1262bafdb44700b34e7b703e.tar.bz2
[project @ 2003-09-10 21:44:10 by bursa]
Reformat page when browser window is resized. svn path=/import/netsurf/; revision=280
Diffstat (limited to 'content')
-rw-r--r--content/content.c1
-rw-r--r--content/content.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/content/content.c b/content/content.c
index 417f05561..55dfbe7df 100644
--- a/content/content.c
+++ b/content/content.c
@@ -257,6 +257,7 @@ void content_reformat(struct content *c, unsigned long width, unsigned long heig
c->status == CONTENT_STATUS_DONE);
c->available_width = width;
handler_map[c->type].reformat(c, width, height);
+ content_broadcast(c, CONTENT_MSG_REFORMAT, 0);
}
diff --git a/content/content.h b/content/content.h
index c8f5cb099..b1198f7db 100644
--- a/content/content.h
+++ b/content/content.h
@@ -66,7 +66,8 @@ typedef enum {
CONTENT_MSG_DONE, /**< finished */
CONTENT_MSG_ERROR, /**< error occurred */
CONTENT_MSG_STATUS, /**< new status string */
- CONTENT_MSG_REDIRECT /**< replacement URL */
+ CONTENT_MSG_REDIRECT, /**< replacement URL */
+ CONTENT_MSG_REFORMAT /**< content_reformat done */
} content_msg;
/** Linked list of users of a content. */