replaced all int/size_t indices in wxControlWithItems API with unsigned int (committing on behalf of ABX)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-23 22:05:23 +00:00
parent 5aa67d6619
commit aa61d35253
112 changed files with 1367 additions and 1414 deletions

View File

@@ -101,16 +101,16 @@ void wxCheckListBox::DoCreateCheckList()
gtk_tree_view_append_column(m_treeview, column);
}
bool wxCheckListBox::IsChecked( int index ) const
bool wxCheckListBox::IsChecked(unsigned int index) const
{
wxCHECK_MSG( m_treeview != NULL, FALSE, wxT("invalid checklistbox") );
wxCHECK_MSG( m_treeview != NULL, false, wxT("invalid checklistbox") );
GtkTreeIter iter;
gboolean res = gtk_tree_model_iter_nth_child(
GTK_TREE_MODEL(m_liststore),
&iter, NULL, //NULL = parent = get first
index
);
);
if(!res)
return false;
@@ -123,7 +123,7 @@ bool wxCheckListBox::IsChecked( int index ) const
return g_value_get_boolean(&value) == TRUE ? true : false;
}
void wxCheckListBox::Check( int index, bool check )
void wxCheckListBox::Check(unsigned int index, bool check)
{
wxCHECK_RET( m_treeview != NULL, wxT("invalid checklistbox") );
@@ -132,7 +132,7 @@ void wxCheckListBox::Check( int index, bool check )
GTK_TREE_MODEL(m_liststore),
&iter, NULL, //NULL = parent = get first
index
);
);
if(!res)
return;