X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0badb709a86b91a203416784b649e3d00c699c7..de4a74e2d01d600081c50a087c313a770906b560:/src/motif/toolbar.cpp diff --git a/src/motif/toolbar.cpp b/src/motif/toolbar.cpp index 770e1bfcd0..42851b1b38 100644 --- a/src/motif/toolbar.cpp +++ b/src/motif/toolbar.cpp @@ -30,10 +30,9 @@ #include "wx/app.h" #include "wx/frame.h" #include "wx/timer.h" + #include "wx/settings.h" #endif -#include "wx/settings.h" - #ifdef __VMS__ #pragma message disable nosimpint #endif @@ -205,6 +204,8 @@ bool wxToolBar::Create(wxWindow *parent, wxDefaultValidator, name ) ) return false; + FixupStyle(); + m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE); Widget parentWidget = (Widget) parent->GetClientWidget(); @@ -380,7 +381,7 @@ bool wxToolBar::Realize() insensBmp = tool->GetDisabledBitmap(); if ( bmp.GetMask() || insensBmp.GetMask() ) { - int backgroundPixel; + WXPixel backgroundPixel; XtVaGetValues(button, XmNbackground, &backgroundPixel, NULL); @@ -403,7 +404,7 @@ bool wxToolBar::Realize() // Create a selected/toggled bitmap. If there isn't a 2nd // bitmap, we need to create it (with a darker, selected // background) - int backgroundPixel; + WXPixel backgroundPixel; if ( tool->CanBeToggled() ) XtVaGetValues(button, XmNselectColor, &backgroundPixel, NULL);