Added wxTreeCtrl::GetItemParent to deprecate GetParent.
Moved GetParent into WX_COMPAT_2_2 and exposed base GetParent in that case too. Replaced all lib/sample uses of wxTC::GetParent with GetItemParent. Updated docs to suit. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -315,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");
|
||||
|
||||
|
Reference in New Issue
Block a user