fred_beacon hotmail com

maybe you shouldnt cast the widget into an object? i'm not sure, just a 
suggestion. tell me if it works ok?

>From: "fred beacon" <>
>Subject: [gtk-list] gdk_pixbuf_render_to_drawable
>Date: Wed, 01 Mar 2000 22:12:17 EST
>I seem to be the only one having trouble with this, but i can't seem to 
>the solution, and i have spent countless hours on it.  I cannot render the
>pixbuf to the drawable 'drawing_area->window'.  I get this error when i
>execute my program:
>** CRITICAL **: file gdk-pixbuf-render.c: line 212
>(gdk_pixbuf_render_to_drawable): assertion `drawable != NULL' failed.
>here is my expose event, from which i think the problem is coming:
>static gint expose_event(GtkWidget *widget, GdkEventExpose *event)
>GdkPixbuf *pixbuf = gtk_object_get_data(GTK_OBJECT(widget), "pixbuf");
>//render the pixbuf
>	gdk_pixbuf_render_to_drawable(pixbuf,
>			widget->window,
>			widget->style->black_gc,
>			event->area.x, event->area.y,
>			event->area.x, event->area.y,
>			event->area.width, event->area.height,
>			0,
>			0);
>return FALSE;
>if anyone can help me with this i would greatly appreciate it.  like i 
>i have been working on it for a while and i would not have posted it if i
>didn't really need some help. thanks.
>Get Your Private, Free Email at
>To unsubscribe: mail -s unsubscribe < /dev/null

Get Your Private, Free Email at

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]