GtkWidget * sp_gradient_image_new (SPGradient *gradient) { SPGradientImage *image = SP_GRADIENT_IMAGE(g_object_new(SP_TYPE_GRADIENT_IMAGE, NULL)); sp_gradient_image_set_gradient (image, gradient); return GTK_WIDGET(image); }
GtkWidget * sp_gradient_image_new (SPGradient *gradient) { SPGradientImage *image; image = (SPGradientImage*)gtk_type_new (SP_TYPE_GRADIENT_IMAGE); sp_gradient_image_set_gradient (image, gradient); return (GtkWidget *) image; }