Re: gdk_pixbuf error
- From: Sven Neumann <sven gimp org>
- To: sebastien geffroy <seb ekinos com>
- Cc: gtk-devel-list gnome org
- Subject: Re: gdk_pixbuf error
- Date: 08 Nov 2001 13:01:34 +0100
sebastien geffroy <seb ekinos com> writes:
> I've got a problem with gdk-pixbuf. I want to load and display png and
> jpg images. So i use gdk_pixbuf_new_from_file. Images are loading.
> But, i want to dysplay them, so i use
> gdk_pixbuf_render_to_drawable(img, drawingarea->window,
> 0, 0, 0, 0,
> GDK_RGB_DITHER_NORMAL, 0, 0);
> where img is my GdkPixbuf images and drawingarea is a GtkDrawingArea,
> but it goes in seg fault. I run gdb to look where it's fault, and it's
> just in this function.
please don't send questions about usage of GTK+ to the gtk-devel-list.
This list is to discuss the development of GTK+. Questions such as
yours belong to gtk-list or gtk-app-devel-list.
> What's wrong with my code ?
is the drawing area realized? Otherwise drawingarea->window is NULL.
] [Thread Prev