Include wx/utils.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-05-02 10:39:23 +00:00
parent a8461d3170
commit de6185e212
138 changed files with 642 additions and 534 deletions

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: spinbutt.cpp
// Name: src/gtk1/spinbutt.cpp
// Purpose: wxSpinButton
// Author: Robert
// Modified by:
@@ -11,11 +11,14 @@
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#include "wx/spinbutt.h"
#if wxUSE_SPINBTN
#include "wx/utils.h"
#include "wx/spinbutt.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#endif
#include "wx/math.h"
#include "wx/gtk1/private.h"
@@ -114,7 +117,7 @@ bool wxSpinButton::Create(wxWindow *parent,
long style,
const wxString& name)
{
m_needParent = TRUE;
m_needParent = true;
wxSize new_size = size,
sizeBest = DoGetBestSize();
@@ -126,7 +129,7 @@ bool wxSpinButton::Create(wxWindow *parent,
!CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name ))
{
wxFAIL_MSG( wxT("wxXX creation failed") );
return FALSE;
return false;
}
m_oldPos = 0.0;
@@ -147,7 +150,7 @@ bool wxSpinButton::Create(wxWindow *parent,
PostCreation(new_size);
return TRUE;
return true;
}
int wxSpinButton::GetMin() const
@@ -236,4 +239,4 @@ wxSpinButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
return GetDefaultAttributesFromGTKWidget(gtk_button_new);
}
#endif
#endif // wxUSE_SPINBTN