KibaRGBA foo[] = { {0.0f,0.0f,0.0f,1.0f} }; pattern = cairo_get_gradient_pattern (0, 0, widget->allocation.width, widget->allocation.height, foo, 1);