getting button_press event for gtk_drawing_area (was: calling gdk_x11_drawable_get_xid() causes corruption...)

2009-12-13 Thread Eigo Mori
Hi, In short what I want is packing multiple gtk_drawing_area in a window and getting button press event from each drawing area. The drawing areas are meant for animated video thumbnail(shortened and downscaled). When you clicking on a thumbnail, it starts the actual playback on a different

Re: How to create a thumbnail of a picture?

2009-12-13 Thread Jianchun Zhou
Thanks Lars. On Fri, Dec 11, 2009 at 6:10 PM, Lars Wirzenius l...@liw.fi wrote: On Fri, 2009-12-11 at 17:50 +0800, Jianchun Zhou wrote: Hi, All: Any body knows how to create a thumbnail of a picture in GTK+? I want to load an image, then output a file which is the resized image. The

Re: getting button_press event for gtk_drawing_area

2009-12-13 Thread Eigo Mori
Hi Carlos, This has been working fine until being compiled with gtk+-2.18.0 but does not work after that. Now I found that it worked with the later gtk if I add GDK_BUTTON_RELEASE_MASK when calling gtk_widget_set_events(). I don't know why... I even don't have the callback for the