Update status bar when standalone images are done.

svn path=/trunk/netsurf/; revision=3917
This commit is contained in:
Michael Drake 2008-03-10 12:41:41 +00:00
parent abd453166f
commit 9d3b7b43fd
10 changed files with 20 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}