Hi there.
I'm a Japanese. I'm sorry, my English is poor, so it may be
hard to read this mail.
I use Slackware Linux 10.0.
I got the following errors, while compiling newpki_client
2.0.0 beta4 on wxGTK 2.5.3.
DlgServerAdmin.cpp: In member function `void
DlgServerAdmin::OnTreeItemRightClick(wxTreeEvent&)':
DlgServerAdmin.cpp:430: error: no matching function for call to `wxTreeCtrl::
GetParent(wxTreeItemId)'
/usr/include/wx-2.5/wx/window.h:552: error: candidates are: wxWindow*
wxWindowBase::GetParent() const
According to the following URL, wxTreeCtrl::GetParent() is
deprecated and only work if WXWIN_COMPATIBILITY_2_2 is
defined. Use wxTreeCtrl::GetItemParent instead.
http://www.wxwidgets.org/manuals/2.5.3/wx_wxtreectrl.html#wxtreectrlgetparent
So I created the following patches to avoid this compile error.
--- src/DlgServerAdmin.cpp.orig 2004-05-31 08:02:50.000000000 +0900
+++ src/DlgServerAdmin.cpp 2004-11-21 14:04:54.000000000 +0900
@@ -427,7 +427,7 @@
m_treeCtrl->SelectItem(event.GetItem());
- if(m_treeCtrl->GetParent(event.GetItem()))
+ if(m_treeCtrl->GetItemParent(event.GetItem()))
{
menu = menu_b->GetMenu(0);
if(menu)
Is this the right solution?
-- ryo
_____________________________________________________________________
NewPKI http://www.newpki.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]