Re: Finding gtkwidget from GdkWindow



"Ian King" <king eiffel com> writes:
> If I retrieve the gdkwindow that the mouse pointer is currently over
> (gdk_window_at_pointer), what is the easiest way to find the relative
> gtkWidget for which this gdkwindow is associated with.
> 

It's gdk_window_get_user_data (window). The user data on a window is
always the widget it's associated with.

If you're trying to get the widget someone clicked, remember that not
all widgets have windows.

Havoc




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