| Date: Tue, 17 Sep 2002 09:38:31 +0000
Make keyboard focus under Win32 work again by fixing gtk_window_update_focus;
hWnds with focus no longer have to be direct children of the main window, but
can be further removed descendants.
Diffstat:
M src/gtkport/gtkport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- |
| t@@ -1504,7 +1504,7 @@ void gtk_window_update_focus(GtkWindow *window)
if (FocusWnd) {
widget = GTK_WIDGET(myGetWindowLong(FocusWnd, GWL_USERDATA));
if (widget && GTK_WIDGET(window)->hWnd &&
- GetParent(FocusWnd) == GTK_WIDGET(window)->hWnd) {
+ IsChild(GTK_WIDGET(window)->hWnd, FocusWnd)) {
window->focus = widget;
}
} |