Re: GdkPixbuf query



Hi,

Questions about using GTK should go to gtk-list, not gtk-devel-list.
This list is for developing GTK itself.

"Amitava Guha" <amitava_guha netkracker com> writes: 
> Is it valid to pass the GtkDrawingArea as a drwabale to the
> gdk_pixbuf_render_to_drawable function?

No, it's a type error.

>       gdk_pixbuf_render_to_drawable(pic,
>         (GdkDrawable*)widget,

If the compiler complains about types, it's probably not right to
insert a cast - instead you need to pass in an object of the right
type.

In this case, use widget->window.

Havoc




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