projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Produce correct SVG files in all locales.
[wxWidgets.git]
/
src
/
gtk1
/
evtloop.cpp
diff --git
a/src/gtk1/evtloop.cpp
b/src/gtk1/evtloop.cpp
index 1a32789eb91f1db0a28d2413ec8bb7b26dfa2bc8..d688c36365c12e210546e13dc91b4e5204ed8f26 100644
(file)
--- a/
src/gtk1/evtloop.cpp
+++ b/
src/gtk1/evtloop.cpp
@@
-6,7
+6,7
@@
// Created: 10.07.01
// RCS-ID: $Id$
// Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Created: 10.07.01
// RCS-ID: $Id$
// Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licen
s
e: wxWindows licence
+// Licen
c
e: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
@@
-28,6
+28,7
@@
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/log.h"
#endif // WX_PRECOMP
#include <gtk/gtk.h>
#endif // WX_PRECOMP
#include <gtk/gtk.h>
@@
-61,13
+62,13
@@
private:
wxGUIEventLoop::~wxGUIEventLoop()
{
wxGUIEventLoop::~wxGUIEventLoop()
{
- wxASSERT_MSG( !m_impl,
_
T("should have been deleted in Run()") );
+ wxASSERT_MSG( !m_impl,
wx
T("should have been deleted in Run()") );
}
int wxGUIEventLoop::Run()
{
// event loops are not recursive, you need to create another loop!
}
int wxGUIEventLoop::Run()
{
// event loops are not recursive, you need to create another loop!
- wxCHECK_MSG( !IsRunning(), -1,
_
T("can't reenter a message loop") );
+ wxCHECK_MSG( !IsRunning(), -1,
wx
T("can't reenter a message loop") );
wxEventLoopActivator activate(this);
wxEventLoopActivator activate(this);
@@
-78,15
+79,14
@@
int wxGUIEventLoop::Run()
OnExit();
int exitcode = m_impl->GetExitCode();
OnExit();
int exitcode = m_impl->GetExitCode();
- delete m_impl;
- m_impl = NULL;
+ wxDELETE(m_impl);
return exitcode;
}
void wxGUIEventLoop::Exit(int rc)
{
return exitcode;
}
void wxGUIEventLoop::Exit(int rc)
{
- wxCHECK_RET( IsRunning(),
_
T("can't call Exit() if not running") );
+ wxCHECK_RET( IsRunning(),
wx
T("can't call Exit() if not running") );
m_impl->SetExitCode(rc);
m_impl->SetExitCode(rc);
@@
-111,7
+111,7
@@
bool wxGUIEventLoop::Pending() const
bool wxGUIEventLoop::Dispatch()
{
bool wxGUIEventLoop::Dispatch()
{
- wxCHECK_MSG( IsRunning(), false,
_
T("can't call Dispatch() if not running") );
+ wxCHECK_MSG( IsRunning(), false,
wx
T("can't call Dispatch() if not running") );
gtk_main_iteration();
gtk_main_iteration();