mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Using the file name and size of an image as title.
svn path=/trunk/netsurf/; revision=12370
This commit is contained in:
parent
b56cbd365b
commit
27386a45ad
@ -153,9 +153,9 @@ bool apple_image_convert(struct content *c)
|
||||
c->width = [image pixelsWide];
|
||||
c->height = [image pixelsHigh];
|
||||
|
||||
char title[100];
|
||||
snprintf( title, sizeof title, "Image (%dx%d)", c->width, c->height );
|
||||
content__set_title(c, title );
|
||||
NSString *url = [NSString stringWithUTF8String: llcache_handle_get_url( content_get_llcache_handle( c ) )];
|
||||
NSString *title = [NSString stringWithFormat: @"%@ (%dx%d)", [url lastPathComponent], c->width, c->height];
|
||||
content__set_title(c, [title UTF8String] );
|
||||
|
||||
content_set_ready(c);
|
||||
content_set_done(c);
|
||||
|
Loading…
Reference in New Issue
Block a user