Пример #1
0
void delete_cb(Fl_Widget*, void* ic)
{
	Icon* icon = (Icon*)ic;
	assert(icon != NULL);

	fl_ask(_("Delete %s ?"), icon->label().c_str());
}
Пример #2
0
void rename_cb(Fl_Widget*, void* ic)
{
	Icon* icon = (Icon*)ic;
	assert(icon != NULL);
	const char* val = fl_input(_("Rename icon:"), icon->label().c_str());

	if(val)
	{
		if(strlen(val) == 0)
			fl_alert(_("Please do not use empty values as icon names"));
		else
			icon->update_label(val);
	}
}