// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "treectrl.h"
#endif
#endif
#include "wx/gtk/treectrl.h"
-#include <wx/textctrl.h>
+#include "wx/textctrl.h"
#include "wx/log.h"
#include <gtk/gtk.h>
owner->SendSelChanged(GTK_TREE_ITEM(widget));
}
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxTreeCtrl, wxControl)
-#endif
void wxTreeCtrl::Init() {
m_imageListNormal = NULL;
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");
const wxBitmap *bmp;
const wxImageList *list;
if ((list = GetImageList(wxIMAGE_LIST_NORMAL)) != NULL)
- if ((bmp = list->GetBitmap(image)) != NULL)
+ if ((bmp = list->GetBitmapPtr(image)) != NULL)
if (bmp->Ok()) {
GdkBitmap *mask = NULL;
if (bmp->GetMask())