Exemple #1
0
static void spinbn_right_value(GuiSpinBtn *spin)
{
	GuiEntry *entry = GUI_ENTRY_DATA(spin->entry);
	echar buf[entry->nchar + 1];

	e_memcpy(buf, entry->chars, entry->nchar);
	buf[entry->nchar] = 0;

	spinbn_set_value(spin, e_atof(buf));
}
Exemple #2
0
static bool gif_read(GifContext *context, euchar *buffer, size_t len)
{
	if ((context->size - context->ptr) >= len) {
		e_memcpy(buffer, context->buf + context->ptr, len);
		context->ptr += len;
		context->amount_needed = 0;
		return true;
	}
	context->amount_needed = len - (context->size - context->ptr);
	return false;
}
Exemple #3
0
static void spinbn_right_value(GuiSpinBtn *spin)
{
	GuiEntry *entry = GUI_ENTRY_DATA(spin->entry);
#ifdef linux
	echar buf[entry->nchar + 1];
#else
	echar buf[1024];
#endif

	e_memcpy(buf, entry->chars, entry->nchar);
	buf[entry->nchar] = 0;

	spinbn_set_value(spin, (efloat)e_atof(buf));
}