Fix some wxMotif build warnings about deprecated methods.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-01-18 13:01:17 +00:00
parent 52c71b808f
commit fd304d989b
11 changed files with 63 additions and 46 deletions

View File

@@ -119,10 +119,12 @@ void wxButton::SetDefault()
// Because it's very hard to find wxButton in the same row,
// correction is straighforward: we set resource for all wxButton
// in this parent (but not sub panels)
for (wxNode * node = parent->GetChildren().First (); node; node = node->Next ())
for (wxWindowList::Node * node = parent->GetChildren().GetFirst ();
node; node = node->GetNext ())
{
wxButton *item = (wxButton *) node->Data ();
if (item->IsKindOf(CLASSINFO(wxButton)))
wxWindow *win = node->GetData ();
wxButton *item = wxDynamicCast(win, wxButton);
if (item)
{
bool managed = XtIsManaged((Widget) item->GetMainWidget());
if (managed)