]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/treegtk.cpp
really fix warning about implicitly converting 0 and 1 to size_t -- use explicit...
[wxWidgets.git] / src / gtk1 / treegtk.cpp
index d1adda4004ea2dcb0cc7cd1943dd36655a099f3f..91e52b964c6ee49a2cf36a473e7d1b32e2550355 100644 (file)
@@ -20,7 +20,7 @@
 #include "wx/wx.h"
 #endif
 
-#include "wx/gtk/treectrl.h"
+#include "wx/gtk1/treectrl.h"
 #include "wx/textctrl.h"
 #include "wx/log.h"
 
@@ -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 {