Send the wxWindowDestroyEvent for all ports (binary compatible backport)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-02-19 03:07:41 +00:00
parent 2d364cbfae
commit d1af2c3470
8 changed files with 234 additions and 203 deletions

View File

@@ -2735,6 +2735,11 @@ bool wxWindowGTK::Create( wxWindow *parent,
wxWindowGTK::~wxWindowGTK()
{
// Send destroy event
wxWindowDestroyEvent destroyEvent(this);
destroyEvent.SetId(GetId());
GetEventHandler()->ProcessEvent(destroyEvent);
if (g_focusWindow == this)
g_focusWindow = NULL;
@@ -3438,7 +3443,7 @@ int wxWindowGTK::GetCharHeight() const
pango_layout_line_get_extents(line, NULL, &rect);
g_object_unref( G_OBJECT( layout ) );
return (int) (rect.height / PANGO_SCALE);
#else
GdkFont *font = m_font.GetInternalFont( 1.0 );
@@ -3471,7 +3476,7 @@ int wxWindowGTK::GetCharWidth() const
pango_layout_line_get_extents(line, NULL, &rect);
g_object_unref( G_OBJECT( layout ) );
return (int) (rect.width / PANGO_SCALE);
#else
GdkFont *font = m_font.GetInternalFont( 1.0 );