[cairo] warning while executing gtk_widget_draw
lvenkatakumarchakka at gmail.com
Tue Aug 12 00:54:27 PDT 2014
I have written one program and I am seeing the following warning:
Gtk-CRITICAL **: gtk_widget_draw: assertion '!widget->priv->alloc_needed'
program is as follows:
gtk_init( NULL, NULL );
statistics = (GtkDrawingArea*)gtk_drawing_area_new();
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
cr = cairo_create ( surface );
gtk_widget_draw( (GtkWidget*)statistics, cr );
cairo_surface_write_to_png( surface, "one.png" );
main_window = (GtkWindow*)gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_container_add (GTK_CONTAINER (main_window),(GtkWidget*)statistics);
can some one please tell me the problem in the above program ?
Thanks & Regards
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo