Re: Mouse motion events
- From: Paul Davis <paul linuxaudiosystems com>
- To: Douwe Vos <dmvos2000 yahoo com>
- Cc: gtk-list gnome org
- Subject: Re: Mouse motion events
- Date: Fri, 01 Aug 2008 08:13:39 -0400
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]