]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/treegtk.cpp
Support for new native OS/2 tree control with drag-and-drop.
[wxWidgets.git] / src / gtk1 / treegtk.cpp
index 6d8fa194e161bc0d7feb275b0b1e99208529feeb..98f7fa7893a6b6a7dd979a37d8a7da5013428807 100644 (file)
@@ -25,7 +25,7 @@
 #endif
 
 #include "wx/gtk/treectrl.h"
-#include <wx/textctrl.h>
+#include "wx/textctrl.h"
 #include "wx/log.h"
 
 #include <gtk/gtk.h>
@@ -75,10 +75,8 @@ static void gtk_treeitem_select_callback(GtkWidget *widget, wxTreeItemId *treeit
   owner->SendSelChanged(GTK_TREE_ITEM(widget));
 }
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxTreeCtrl, wxControl)
 
-#endif
 
 void wxTreeCtrl::Init() {
   m_imageListNormal = NULL;
@@ -317,7 +315,7 @@ wxTreeItemId wxTreeCtrl::GetSelection() const {
   return p;
 }
 
-wxTreeItemId wxTreeCtrl::GetParent(const wxTreeItemId& item) const {
+wxTreeItemId wxTreeCtrl::GetItemParent(const wxTreeItemId& item) const {
   if (item.IsOk())
     return (GtkTreeItem *)gtk_object_get_data(GTK_OBJECT((GtkTreeItem *)item), "parent");