mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-22 17:34:19 +03:00
Update status bar when standalone images are done.
svn path=/trunk/netsurf/; revision=3917
This commit is contained in:
parent
abd453166f
commit
9d3b7b43fd
@ -84,6 +84,8 @@ bool nsbmp_convert(struct content *c, int iwidth, int iheight) {
|
||||
/* exit as a success */
|
||||
c->bitmap = bmp->bitmap;
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -122,6 +122,8 @@ bool nsgif_convert(struct content *c, int iwidth, int iheight) {
|
||||
*/
|
||||
c->bitmap = gif->frame_image;
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -87,6 +87,8 @@ bool nsico_convert(struct content *c, int iwidth, int iheight) {
|
||||
assert(bmp);
|
||||
c->bitmap = bmp->bitmap;
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -153,6 +153,8 @@ bool nsjpeg_convert(struct content *c, int w, int h)
|
||||
width, height, c->source_size);
|
||||
c->size += height * rowstride + 100;
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -291,6 +291,8 @@ bool nsmng_convert(struct content *c, int width, int height) {
|
||||
|
||||
c->size += c->width * c->height * 4 + 100;
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
|
||||
/* jmb: I'm really not sure that this should be here.
|
||||
* The *_convert functions are for converting a content into a
|
||||
|
@ -172,6 +172,8 @@ bool rsvg_convert(struct content *c, int iwidth, int iheight)
|
||||
|
||||
c->bitmap = d->bitmap;
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -73,6 +73,8 @@ bool svg_convert(struct content *c, int w, int h)
|
||||
width, height, c->source_size);*/
|
||||
//c->size += ?;
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -196,6 +196,8 @@ bool artworks_convert(struct content *c, int width, int height)
|
||||
snprintf(c->title, 100, messages_get("ArtWorksTitle"), c->width,
|
||||
c->height, c->source_size);
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -72,6 +72,8 @@ bool draw_convert(struct content *c, int width, int height)
|
||||
snprintf(c->title, 100, messages_get("DrawTitle"), c->width,
|
||||
c->height, c->source_size);
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -85,6 +85,8 @@ bool sprite_convert(struct content *c, int width, int height)
|
||||
snprintf(c->title, 100, messages_get("SpriteTitle"), c->width,
|
||||
c->height, c->source_size);
|
||||
c->status = CONTENT_STATUS_DONE;
|
||||
/* Done: update status bar */
|
||||
content_set_status(c, "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user