I've now fixed it by connecting to the parent widget of the container. This is maybe not so nice, but it works. I will try your idea (after lunch :), it sounds better. Thanks.. ----- Original Message ---- From: Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> To: Douwe Vos <dmvos2000@xxxxxxxxx> Cc: gtk-list@xxxxxxxxx Sent: Friday, August 1, 2008 2:13:39 PM Subject: Re: Mouse motion events On Fri, 2008-08-01 at 04:37 -0700, Douwe Vos wrote: > Hi, I'm trying to get mouse motion-events from an implementation of the GtkContainer but whatever I try, I do not get events. The documentation more or less makes notice that these events are thrown on GtkWindow types only. So I tried to change my container implementation to extend from GtkWindow instead of GtkContainer. This didn't work either. So then I tried to remove the line GTK_WIDGET_SET_FLAGS (my_container, GTK_NO_WINDOW); but then I get > > ** Gtk:ERROR:(/build/buildd/gtk+2.0-2.12.9/gtk/gtkwidget.c:7967):gtk_widget_real_realize: assertion failed: (GTK_WIDGET_NO_WINDOW (widget)) > Aborted > > I just need some mouse events :( why do you want them for a container? a container is just a packing tool. conventional practice would be to put an event box into the container and get motion events from it. _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list