]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/toolbar.cpp
Added minimal file dialog for SmartPhone
[wxWidgets.git] / src / motif / toolbar.cpp
index 08413938116aa073e299ca98bef77a5c02a0cb2d..6bdc23d9cd9e37c9a4fccf7ccf0d0a9b6a8f4cb0 100644 (file)
@@ -239,7 +239,6 @@ bool wxToolBar::Create(wxWindow *parent,
     if( rSize.x == -1 && GetParent() )
         rSize.x = GetParent()->GetSize().x;
 
-    SetCanAddEventHandler(TRUE);
     AttachWidget (parent, m_mainWidget, (WXWidget) NULL,
                   rPos.x, rPos.y, rSize.x, rSize.y);
 
@@ -361,8 +360,8 @@ bool wxToolBar::Realize()
 
                 if( !tool->GetButtonWidget() )
                 {
-                    DoChangeBackgroundColour((WXWidget) button,
-                                             m_backgroundColour, TRUE);
+                    wxDoChangeBackgroundColour((WXWidget) button,
+                                               m_backgroundColour, TRUE);
 
                     tool->SetWidget(button);
                 }