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.




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