Re: Finding gtkwidget from GdkWindow
- From: Havoc Pennington <hp redhat com>
- To: "Ian King" <king eiffel com>
- Cc: <gtk-list gnome org>
- Subject: Re: Finding gtkwidget from GdkWindow
- Date: 14 Jun 2001 21:20:50 -0400
"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]