]> git.saurik.com Git - wxWidgets.git/commitdiff
Trying to fix dialog close/focus_widget problem.
authorRobert Roebling <robert@roebling.de>
Sat, 17 Nov 2001 17:14:40 +0000 (17:14 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 17 Nov 2001 17:14:40 +0000 (17:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp
src/gtk1/toplevel.cpp

index 0f65290104f521a346e412c6acf450b785e3bc14..515d60b61e25ea3886112b3f6ce52141f65227f5 100644 (file)
@@ -497,6 +497,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
 wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
 {
     m_isBeingDeleted = TRUE;
+    
+    gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
 
     wxTopLevelWindows.DeleteObject( this );
 
index 0f65290104f521a346e412c6acf450b785e3bc14..515d60b61e25ea3886112b3f6ce52141f65227f5 100644 (file)
@@ -497,6 +497,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
 wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
 {
     m_isBeingDeleted = TRUE;
+    
+    gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
 
     wxTopLevelWindows.DeleteObject( this );