]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/treegtk.cpp
Docstring fix
[wxWidgets.git] / src / gtk / treegtk.cpp
index 9c6809f2920878b5e7a63aaf47b0fe1fedfc879c..d5c5ddff1d2df9872b4554f4fd8d865f14f03627 100644 (file)
@@ -152,12 +152,14 @@ static void gtk_treectrl_count_callback (GtkWidget *widget, gpointer data) {
     gtk_container_foreach(GTK_CONTAINER(widget), gtk_treectrl_count_callback, data);
 }
 
-size_t wxTreeCtrl::GetCount() const {
-  int count = 0;
+unsigned int wxTreeCtrl::GetCount() const
+{
+    int count = 0;
+
+    if (m_anchor != NULL)
+        gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
 
-  if (m_anchor != NULL)
-    gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
-  return count;
+    return (unsigned int)count;
 }
 
 unsigned int wxTreeCtrl::GetIndent() const {