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

« back to all changes in this revision

Viewing changes to src/common/framecmn.cpp

  • 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:
3
3
// Purpose:     common (for all platforms) wxFrame functions
4
4
// Author:      Julian Smart, Vadim Zeitlin
5
5
// Created:     01/02/97
6
 
// Id:          $Id: framecmn.cpp 49740 2007-11-09 11:08:13Z JS $
 
6
// Id:          $Id: framecmn.cpp 51463 2008-01-30 21:31:03Z VZ $
7
7
// Copyright:   (c) 1998 Robert Roebling and Julian Smart
8
8
// Licence:     wxWindows licence
9
9
/////////////////////////////////////////////////////////////////////////////
171
171
 
172
172
void wxFrameBase::SendSizeEvent()
173
173
{
174
 
    wxSizeEvent event( GetSize(), GetId() );
 
174
    const wxSize size = GetSize();
 
175
    wxSizeEvent event( size, GetId() );
175
176
    event.SetEventObject( this );
176
177
    GetEventHandler()->AddPendingEvent( event );
177
178
 
179
180
    // SendSizeEvent is typically called when a toolbar is shown
180
181
    // or hidden, but sending the size event alone is not enough
181
182
    // to trigger a full layout.
182
 
    ((wxFrame*)this)->GtkOnSize();
183
 
#endif
 
183
    ((wxFrame*)this)->GtkOnSize(
 
184
#ifndef __WXGTK20__
 
185
        0, 0, size.x, size.y
 
186
#endif // __WXGTK20__
 
187
    );
 
188
#endif // __WXGTK__
184
189
}
185
190
 
186
191
 
216
221
        }
217
222
    }
218
223
 
219
 
    GetEventHandler()->ProcessEvent(commandEvent);
220
 
    return true;
 
224
    return GetEventHandler()->ProcessEvent(commandEvent);
221
225
#else // !wxUSE_MENUS
222
226
    return false;
223
227
#endif // wxUSE_MENUS/!wxUSE_MENUS