fred_beacon hotmail com

oops, sorry, forget about that. i thought you cast the widget while passing 
it to the expose_event function. good luck anyway.
say, do you think you can help me on some gdk stuff? hey, wait a minute. i 
got that same error message "Drawable!=NULL" before. i managed to fix that 
one. what i did was, CEATE THE DRAWING AREA FIRST (either by gdk_widget_show 
or gdk_widget_realize) then only you create the pixbuf. yeah, i'm pretty 
sure thats the problem, hooray! again, tell me if it works.


>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]