Re: motion_notify_event



On Sat, Jan 29, 2011 at 06:02:59AM -0500, craigbakalian wrote:
Can a GtkImage call a motion_notify_event.  Or, better stated, can I do
this->
GtkImage *image;
gtk_widget_add_events(image, GDK_POINTER_MOTION_MASK);

No, this won't work because image is a no-window widget.  You must put
it into an event-box, see

    http://library.gnome.org/devel/gtk/stable/GtkWidget.html#gtk-widget-set-events

Yeti




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