]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix (sorry)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 6 Aug 2001 11:48:00 +0000 (11:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 6 Aug 2001 11:48:00 +0000 (11:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp
src/gtk/window.cpp
src/gtk1/textctrl.cpp
src/gtk1/window.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)
index 9dac9b8c8f7ee7df31d13195bc17f758423f936d..8a1f5c0cb9ea0ff3410ed7b92ca48054ff6b1264 100644 (file)
@@ -1694,8 +1694,8 @@ static gint gtk_window_focus_in_callback( GtkWidget *widget,
 
     // notify the parent keeping track of focus for the kbd navigation
     // purposes that we got it
-    wxChildFocusEvent eventFocus(this);
-    (void)GetEventHandler()->ProcessEvent(eventFocus);
+    wxChildFocusEvent eventFocus(win);
+    (void)win->GetEventHandler()->ProcessEvent(eventFocus);
 
 #ifdef HAVE_XIM
     if (win->m_ic)
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)
index 9dac9b8c8f7ee7df31d13195bc17f758423f936d..8a1f5c0cb9ea0ff3410ed7b92ca48054ff6b1264 100644 (file)
@@ -1694,8 +1694,8 @@ static gint gtk_window_focus_in_callback( GtkWidget *widget,
 
     // notify the parent keeping track of focus for the kbd navigation
     // purposes that we got it
-    wxChildFocusEvent eventFocus(this);
-    (void)GetEventHandler()->ProcessEvent(eventFocus);
+    wxChildFocusEvent eventFocus(win);
+    (void)win->GetEventHandler()->ProcessEvent(eventFocus);
 
 #ifdef HAVE_XIM
     if (win->m_ic)