Gateau au yaourt (Yoghurt cake)

#include <cook.h>

/* For the record * g_add_food (Container *container, const char *type, float size); */

int main (int argc, char *argv[])
{
    Container *bowl, *mould;

    bowl = g_new (Container, 1);
    g_add_food (bowl, "yogurt", 1);
    g_add_food (bowl, "sugar", sizeof ("yogurt")*2);
    g_add_food (bowl, "eggs", 2);
    g_add_food (bowl, "oil", sizeof ("yogurt")/2);
#ifdef HAVE_VANILLA_SUGAR
    g_add_food (bowl, "vanilla_sugar", 1);
#endif
    g_add_food (bowl, "flour", 3);
    g_add_food (bowl, "cake_yeast", 1);

    mould = g_mould_new_with_butter_and_flour ();
    g_food_reparent (bowl->children, mould);

    g_oven_set_thermostat (6);
    g_oven_set_timer (25);
    g_main_cook ();

    g_print ("Yum");
    return 0;
} 

BastienNocera: I can translate this into proper English if necessary ;)

GnomeCookbook/GateauAuYaourt (last edited 2008-02-14 18:11:42 by BastienNocera)