Add missing title

svn path=/trunk/netsurf/; revision=13058
This commit is contained in:
Chris Young 2011-10-15 13:10:54 +00:00
parent f39e150065
commit 085940711d
2 changed files with 9 additions and 0 deletions

View File

@ -170,6 +170,8 @@ const char *fetch_filetype(const char *unix_path)
return "text/html";
} else if ((3 < l) && (strcasecmp(unix_path + l - 4, ",b60") == 0)) {
return "image/png";
} else if ((3 < l) && (strcasecmp(unix_path + l - 4, ",ff9") == 0)) {
return "image/x-riscos-sprite";
}
if (strchr(unix_path, '.') == NULL) {

View File

@ -99,6 +99,7 @@ static bool nssprite_convert(struct content *c)
const char *data;
unsigned long size;
char title[100];
data = content__get_source_data(c, &size);
@ -143,10 +144,16 @@ static bool nssprite_convert(struct content *c)
c->width = sprite->width;
c->height = sprite->height;
snprintf(title, sizeof(title), messages_get("SpriteTitle"),
c->width, c->height, size);
content__set_title(c, title);
bitmap_modified(nssprite->bitmap);
content_set_ready(c);
content_set_done(c);
content_set_status(c, ""); /* Done: update status bar */
return true;
}