]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/textctrl.cpp
compilation fix (sorry)
[wxWidgets.git] / src / gtk1 / textctrl.cpp
index 596ab3c6b30e20c7bb8c3c555e1521fabef26a6e..f16643b0c74218275e3ac7100832e24fa35324e6 100644 (file)
@@ -97,11 +97,9 @@ static gint gtk_text_focus_in_callback( GtkWidget *widget, GdkEvent *WXUNUSED(ev
 
     g_focusWindow = win;
 
-    wxPanel *panel = wxDynamicCast(win->GetParent(), wxPanel);
-    if (panel)
-    {
-        panel->SetLastFocus(win);
-    }
+    // notify the parent that we got the focus
+    wxChildFocusEvent eventFocus(win);
+    (void)win->GetEventHandler()->ProcessEvent(eventFocus);
 
 #ifdef HAVE_XIM
     if (win->m_ic)