I try to draw part of image in drawing area, but all I get is access violation:
expose_event( GtkWidget *widget, GdkEventExpose *event )
First function, where I copy portion of hand-made pixmap works fine, but img1 loaded with gtk_image_new_from_file() fails. Image loaded correcrtly, I can show it, if I use gtk_container_add().
Image is simply 128x128 bmp file.
Can anyone help me?
PS: Yes, I saw demos like images.c, but they use gtk_container_add() instead of gdk_draw_image().