~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to include/wx/evtloop.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2008-06-30 22:02:17 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080630220217-vag3tkfp91t0453d
Tags: 2.8.8.0-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.8.0.tar.bz2, remove upstream debian dir (LP: #244355).
* Add debian/watch file, LP: #242164.
* Edit get-orig-source target to provide a .orig.tar.gz with the same md5 for
  each .orig.tar.gz generated.
* debian/rules: remove get-orig-source from .PHONY target.
* debian/control.in: add python-wxtools in python-wxgtk=V=U Suggests field.
* Do not apply fix_from_upstream_svn_r52465 patch, not needed.
* Regenerate octave_oct, tcl_tk_tcl patches for the new version.
* Fix spelling-error-in-description lintian warning.
* Fix depends-on-obsolete-package lintian error.
* Fix executable-not-elf-or-script lintian warnings.
* Fix script-not-executable lintian warnings.
* Fix missing-dependency-on-libc lintian error.
* Fix dbg-package-missing-depends lintian warnings.
* Fix package-contains-empty-directory lintian warnings.
* Fix manpage-has-errors-from-man lintian warning.
* Fix image-file-in-usr-lib lintian warnings:
  - add editra_pixmaps patch
  - add xrced_bitmaps patch
* Fix unused-override lintian info.
* Fix malformed-override lintian errors.
* Fix extra-license-file lintian warnings.
* Install upstream wx.pth instead of generated file links (LP: #211553).
* Add editra.png, pyshell.png (encoded using uuencode) icons, LP: #236876:
  - debian/rules: use uudecode to decode .png icons.
* Add a new pyshell.xpm icon.
* Fix doc-base-file-references-missing-file lintian error.
* Fix doc-base-unknown-section lintian warning.
* Fix ruby-script-but-no-ruby-dep lintian errors.
* Fix wish-script-but-no-wish-dep lintian errors.
* Fix missing-dep-for-interpreter errors.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Author:      Vadim Zeitlin
5
5
// Modified by:
6
6
// Created:     01.06.01
7
 
// RCS-ID:      $Id: evtloop.h 40865 2006-08-27 09:42:42Z VS $
 
7
// RCS-ID:      $Id: evtloop.h 53607 2008-05-16 15:21:40Z SN $
8
8
// Copyright:   (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
9
9
// Licence:     wxWindows licence
10
10
///////////////////////////////////////////////////////////////////////////////
14
14
 
15
15
#include "wx/utils.h"
16
16
 
17
 
class WXDLLEXPORT wxEventLoop;
 
17
class WXDLLIMPEXP_FWD_CORE wxEventLoop;
18
18
 
19
19
// ----------------------------------------------------------------------------
20
20
// wxEventLoop: a GUI event loop
198
198
    wxEventLoop *m_evtLoopOld;
199
199
};
200
200
 
 
201
#if wxABI_VERSION >= 20808
 
202
class wxEventLoopGuarantor
 
203
{
 
204
public:
 
205
    wxEventLoopGuarantor()
 
206
    {
 
207
        m_evtLoopNew = NULL;
 
208
        if (!wxEventLoop::GetActive())
 
209
        {
 
210
            m_evtLoopNew = new wxEventLoop;
 
211
            wxEventLoop::SetActive(m_evtLoopNew);
 
212
        }
 
213
    }
 
214
 
 
215
    ~wxEventLoopGuarantor()
 
216
    {
 
217
        if (m_evtLoopNew)
 
218
        {
 
219
            wxEventLoop::SetActive(NULL);
 
220
            delete m_evtLoopNew;
 
221
        }
 
222
    }
 
223
 
 
224
private:
 
225
    wxEventLoop *m_evtLoopNew;
 
226
};
 
227
#endif // wxABI_VERSION >= 20805
 
228
 
201
229
#endif // _WX_EVTLOOP_H_