172 |
point = (*env)->GetIntArrayElements (env, jpoint, 0); |
point = (*env)->GetIntArrayElements (env, jpoint, 0); |
173 |
|
|
174 |
gdk_threads_enter (); |
gdk_threads_enter (); |
175 |
|
|
176 |
gdk_window_get_origin (GTK_WIDGET (ptr)->window, point, point+1); |
gdk_window_get_origin (GTK_WIDGET (ptr)->window, point, point+1); |
177 |
|
|
178 |
|
if (!GTK_IS_CONTAINER (ptr)) |
179 |
|
{ |
180 |
|
*point += GTK_WIDGET(ptr)->allocation.x; |
181 |
|
*(point+1) += GTK_WIDGET(ptr)->allocation.y; |
182 |
|
} |
183 |
|
|
184 |
gdk_threads_leave (); |
gdk_threads_leave (); |
185 |
|
|
186 |
(*env)->ReleaseIntArrayElements(env, jpoint, point, 0); |
(*env)->ReleaseIntArrayElements(env, jpoint, point, 0); |