projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reduce the margins around bitmaps to avoid truncating the label unnecessarily
[wxWidgets.git]
/
src
/
gtk1
/
frame.cpp
diff --git
a/src/gtk1/frame.cpp
b/src/gtk1/frame.cpp
index 9b703f28d8dde87e3ee8ae3b8ad65b5c9e645378..f929afc8e225886a8e7cbee58e8272cca443ecdd 100644
(file)
--- a/
src/gtk1/frame.cpp
+++ b/
src/gtk1/frame.cpp
@@
-1,5
+1,5
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: frame.cpp
+// Name:
src/gtk1/
frame.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// Purpose:
// Author: Robert Roebling
// Id: $Id$
@@
-7,6
+7,9
@@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
// ============================================================================
// declarations
// ============================================================================
// ============================================================================
// declarations
// ============================================================================
@@
-15,23
+18,17
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#include "wx/defs.h"
-
#include "wx/frame.h"
#include "wx/frame.h"
-#include "wx/dialog.h"
-#include "wx/control.h"
-#include "wx/app.h"
-#include "wx/menu.h"
-#if wxUSE_TOOLBAR
+
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+ #include "wx/dcclient.h"
+ #include "wx/menu.h"
+ #include "wx/dialog.h"
+ #include "wx/control.h"
#include "wx/toolbar.h"
#include "wx/toolbar.h"
-#endif
-#if wxUSE_STATUSBAR
#include "wx/statusbr.h"
#include "wx/statusbr.h"
-#endif
-#include "wx/dcclient.h"
+#endif // WX_PRECOMP
#include <glib.h>
#include "wx/gtk1/private.h"
#include <glib.h>
#include "wx/gtk1/private.h"
@@
-498,7
+495,7
@@
void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y),
// send size event to frame
wxSizeEvent event( wxSize(m_width,m_height), GetId() );
event.SetEventObject( this );
// send size event to frame
wxSizeEvent event( wxSize(m_width,m_height), GetId() );
event.SetEventObject( this );
-
GetEventHandler()->Process
Event( event );
+
HandleWindow
Event( event );
#if wxUSE_STATUSBAR
// send size event to status bar
#if wxUSE_STATUSBAR
// send size event to status bar
@@
-506,7
+503,7
@@
void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y),
{
wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
event2.SetEventObject( m_frameStatusBar );
{
wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
event2.SetEventObject( m_frameStatusBar );
- m_frameStatusBar->
GetEventHandler()->Process
Event( event2 );
+ m_frameStatusBar->
HandleWindow
Event( event2 );
}
#endif // wxUSE_STATUSBAR
}
#endif // wxUSE_STATUSBAR