X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/84fb430b9782a3bd9e14953441d9858b7fb04633..b9b8a2b5d79c50af78720589dc96cd7e16cde26e:/src/motif/button.cpp diff --git a/src/motif/button.cpp b/src/motif/button.cpp index 709a1a9ffc..8de8071092 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "button.h" #endif @@ -75,8 +75,6 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label, XmNactivateCallback, (XtCallbackProc) wxButtonCallback, (XtPointer) this); - SetCanAddEventHandler(TRUE); - wxSize best = GetBestSize(); if( size.x != -1 ) best.x = size.x; if( size.y != -1 ) best.y = size.y; @@ -129,7 +127,7 @@ void wxButton::SetDefault() // wxButton in the same row, correction is straighforward: we set // resource for all wxButton in this parent (but not sub panels) - for (wxWindowList::Node * node = parent->GetChildren().GetFirst (); + for (wxWindowList::compatibility_iterator node = parent->GetChildren().GetFirst (); node; node = node->GetNext ()) { wxWindow *win = node->GetData ();