mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-07 18:14:20 +03:00
Add missing title
svn path=/trunk/netsurf/; revision=13058
This commit is contained in:
parent
f39e150065
commit
085940711d
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user