PtArg_t args[2];
int moz_progress_cb(PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo){	PtMozillaProgressCb_t *c = (PtMozillaProgressCb_t *) cbinfo->cbdata;	PtArg_t args[2];	int percent;	char message[256];	if ((c->max <= 0) || (c->cur > c->max))	{		percent = 0;		sprintf(message, "%s (%d bytes loaded)", statusMessage, c->cur);	}	else	{		percent = (c->cur*100)/c->max;		sprintf(message, "%s (%d%% complete, %d bytes of %d loaded)", statusMessage, percent, c->cur, c->max);	}	PtSetResource(progress, Pt_ARG_GAUGE_VALUE, percent, 0);	PtSetResource(status, Pt_ARG_TEXT_STRING, message, 0);	return (Pt_CONTINUE);}