X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd2be5df8d8a250c7987631e996f49ab024a4b54..dca2fe5daecf9c74f227062d8a9a259b4e5ef1fc:/src/dfb/toplevel.cpp diff --git a/src/dfb/toplevel.cpp b/src/dfb/toplevel.cpp index cb557cc2c3..dc3f425d06 100644 --- a/src/dfb/toplevel.cpp +++ b/src/dfb/toplevel.cpp @@ -3,7 +3,6 @@ // Purpose: Top level window, abstraction of wxFrame and wxDialog // Author: Vaclav Slavik // Created: 2006-08-10 -// RCS-ID: $Id$ // Copyright: (c) 2006 REA Elektronik GmbH // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -19,7 +18,7 @@ #include "wx/dfb/private.h" -#define TRACE_EVENTS _T("events") +#define TRACE_EVENTS "events" // ============================================================================ // wxTopLevelWindowDFB @@ -74,7 +73,6 @@ bool wxTopLevelWindowDFB::Create(wxWindow *parent, // showing and hiding // ---------------------------------------------------------------------------- -#warning "FIXME: the rest of this file is almost same as for MGL, merge it" bool wxTopLevelWindowDFB::ShowFullScreen(bool show, long style) { if ( show == m_fsIsShowing ) @@ -179,13 +177,13 @@ void wxTopLevelWindowDFB::HandleFocusEvent(const wxDFBWindowEvent& event_) const bool activate = (dfbevent.type == DWET_GOTFOCUS); wxLogTrace(TRACE_EVENTS, - _T("toplevel window %p ('%s') %s focus"), + "toplevel window %p ('%s') %s focus", this, GetName(), - activate ? _T("got") : _T("lost")); + activate ? "got" : "lost"); wxActivateEvent event(wxEVT_ACTIVATE, activate, GetId()); event.SetEventObject(this); - GetEventHandler()->ProcessEvent(event); + HandleWindowEvent(event); // if a frame that doesn't have wx focus inside it just got focus, we // need to set focus to it (or its child): @@ -195,7 +193,7 @@ void wxTopLevelWindowDFB::HandleFocusEvent(const wxDFBWindowEvent& event_) if ( !focused || focused->GetTLW() != this ) { wxLogTrace(TRACE_EVENTS, - _T("setting wx focus to toplevel window %p ('%s')"), + "setting wx focus to toplevel window %p ('%s')", this, GetName()); if ( CanAcceptFocus() )