Enable EVT_WINDOW_DESTROY (on a private branch since Robert is not
around to ask why it was disabled.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2267,7 +2267,7 @@ wxWindow *wxWindowBase::FindFocus()
|
|||||||
|
|
||||||
// VZ: Robert commented the code using out so it generates warnings: should
|
// VZ: Robert commented the code using out so it generates warnings: should
|
||||||
// be either fixed or removed completely
|
// be either fixed or removed completely
|
||||||
#if 0
|
//**#if 0
|
||||||
|
|
||||||
static void gtk_window_destroy_callback( GtkWidget* widget, wxWindow *win )
|
static void gtk_window_destroy_callback( GtkWidget* widget, wxWindow *win )
|
||||||
{
|
{
|
||||||
@@ -2275,7 +2275,7 @@ static void gtk_window_destroy_callback( GtkWidget* widget, wxWindow *win )
|
|||||||
win->GetEventHandler()->ProcessEvent(event);
|
win->GetEventHandler()->ProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // 0
|
//**#endif // 0
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// "realize" from m_widget
|
// "realize" from m_widget
|
||||||
@@ -2928,9 +2928,9 @@ void wxWindowGTK::ConnectWidget( GtkWidget *widget )
|
|||||||
GTK_SIGNAL_FUNC(gtk_window_leave_callback), (gpointer)this );
|
GTK_SIGNAL_FUNC(gtk_window_leave_callback), (gpointer)this );
|
||||||
|
|
||||||
// This keeps crashing on me. RR.
|
// This keeps crashing on me. RR.
|
||||||
//
|
//**
|
||||||
// gtk_signal_connect( GTK_OBJECT(widget), "destroy",
|
gtk_signal_connect( GTK_OBJECT(widget), "destroy",
|
||||||
// GTK_SIGNAL_FUNC(gtk_window_destroy_callback), (gpointer)this );
|
GTK_SIGNAL_FUNC(gtk_window_destroy_callback), (gpointer)this );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWindowGTK::Destroy()
|
bool wxWindowGTK::Destroy()
|
||||||
|
@@ -2267,7 +2267,7 @@ wxWindow *wxWindowBase::FindFocus()
|
|||||||
|
|
||||||
// VZ: Robert commented the code using out so it generates warnings: should
|
// VZ: Robert commented the code using out so it generates warnings: should
|
||||||
// be either fixed or removed completely
|
// be either fixed or removed completely
|
||||||
#if 0
|
//**#if 0
|
||||||
|
|
||||||
static void gtk_window_destroy_callback( GtkWidget* widget, wxWindow *win )
|
static void gtk_window_destroy_callback( GtkWidget* widget, wxWindow *win )
|
||||||
{
|
{
|
||||||
@@ -2275,7 +2275,7 @@ static void gtk_window_destroy_callback( GtkWidget* widget, wxWindow *win )
|
|||||||
win->GetEventHandler()->ProcessEvent(event);
|
win->GetEventHandler()->ProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // 0
|
//**#endif // 0
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// "realize" from m_widget
|
// "realize" from m_widget
|
||||||
@@ -2928,9 +2928,9 @@ void wxWindowGTK::ConnectWidget( GtkWidget *widget )
|
|||||||
GTK_SIGNAL_FUNC(gtk_window_leave_callback), (gpointer)this );
|
GTK_SIGNAL_FUNC(gtk_window_leave_callback), (gpointer)this );
|
||||||
|
|
||||||
// This keeps crashing on me. RR.
|
// This keeps crashing on me. RR.
|
||||||
//
|
//**
|
||||||
// gtk_signal_connect( GTK_OBJECT(widget), "destroy",
|
gtk_signal_connect( GTK_OBJECT(widget), "destroy",
|
||||||
// GTK_SIGNAL_FUNC(gtk_window_destroy_callback), (gpointer)this );
|
GTK_SIGNAL_FUNC(gtk_window_destroy_callback), (gpointer)this );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWindowGTK::Destroy()
|
bool wxWindowGTK::Destroy()
|
||||||
|
Reference in New Issue
Block a user