X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8228b8932abaedadbf9568bb3a1eef3ae25fb2a3..539872aef30aedbf24339285374d19c0aedd2b11:/src/gtk1/radiobox.cpp diff --git a/src/gtk1/radiobox.cpp b/src/gtk1/radiobox.cpp index 066daa51af..f969e6e4d1 100644 --- a/src/gtk1/radiobox.cpp +++ b/src/gtk1/radiobox.cpp @@ -14,9 +14,11 @@ #include "wx/radiobox.h" -#include "wx/dialog.h" -#include "wx/frame.h" -#include "wx/log.h" +#ifndef WX_PRECOMP + #include "wx/log.h" + #include "wx/frame.h" + #include "wx/dialog.h" +#endif #include "wx/gtk1/private.h" #include @@ -206,8 +208,8 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, SetMajorDim(majorDim == 0 ? n : majorDim, style); - int num_of_cols = GetColumnCount(); - int num_of_rows = GetRowCount(); + unsigned int num_of_cols = GetColumnCount(); + unsigned int num_of_rows = GetRowCount(); GtkRadioButton *m_radio = (GtkRadioButton*) NULL; @@ -290,7 +292,7 @@ wxRadioBox::~wxRadioBox() } } -bool wxRadioBox::Show( bool show ) +bool wxRadioBox::Show(bool show) { wxCHECK_MSG( m_widget != NULL, false, wxT("invalid radiobox") ); @@ -375,7 +377,7 @@ int wxRadioBox::GetSelection(void) const return wxNOT_FOUND; } -wxString wxRadioBox::GetString( int n ) const +wxString wxRadioBox::GetString(unsigned int n) const { wxCHECK_MSG( m_widget != NULL, wxEmptyString, wxT("invalid radiobox") ); @@ -397,7 +399,7 @@ void wxRadioBox::SetLabel( const wxString& label ) GTKSetLabelForFrame(GTK_FRAME(m_widget), label); } -void wxRadioBox::SetString( int item, const wxString& label ) +void wxRadioBox::SetString(unsigned int item, const wxString& label) { wxCHECK_RET( m_widget != NULL, wxT("invalid radiobox") ); @@ -429,7 +431,7 @@ bool wxRadioBox::Enable( bool enable ) return true; } -bool wxRadioBox::Enable( int item, bool enable ) +bool wxRadioBox::Enable(unsigned int item, bool enable) { wxCHECK_MSG( m_widget != NULL, false, wxT("invalid radiobox") ); @@ -446,7 +448,7 @@ bool wxRadioBox::Enable( int item, bool enable ) return true; } -bool wxRadioBox::IsItemEnabled(int item) const +bool wxRadioBox::IsItemEnabled(unsigned int item) const { wxCHECK_MSG( m_widget != NULL, false, wxT("invalid radiobox") ); @@ -461,7 +463,7 @@ bool wxRadioBox::IsItemEnabled(int item) const return GTK_WIDGET_SENSITIVE(GTK_WIDGET(button)); } -bool wxRadioBox::Show( int item, bool show ) +bool wxRadioBox::Show(unsigned int item, bool show) { wxCHECK_MSG( m_widget != NULL, false, wxT("invalid radiobox") ); @@ -479,7 +481,7 @@ bool wxRadioBox::Show( int item, bool show ) return true; } -bool wxRadioBox::IsItemShown(int item) const +bool wxRadioBox::IsItemShown(unsigned int item) const { wxCHECK_MSG( m_widget != NULL, false, wxT("invalid radiobox") ); @@ -492,7 +494,7 @@ bool wxRadioBox::IsItemShown(int item) const return GTK_WIDGET_VISIBLE(GTK_WIDGET(button)); } -size_t wxRadioBox::GetCount() const +unsigned int wxRadioBox::GetCount() const { return m_boxes.GetCount(); }