X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/982b2cfc58f424589a11538f6f7deef3b3217f0f..8614c467553e7dd8a5b9984683d73c89730b8ead:/src/motif/toolbar.cpp diff --git a/src/motif/toolbar.cpp b/src/motif/toolbar.cpp index 70227436b5..5652912227 100644 --- a/src/motif/toolbar.cpp +++ b/src/motif/toolbar.cpp @@ -282,7 +282,12 @@ bool wxToolBar::Realize() button = XtVaCreateWidget("toggleButton", xmToggleButtonWidgetClass, (Widget) m_mainWidget, XmNx, currentX, XmNy, currentY, - // XmNpushButtonEnabled, True, + XmNindicatorOn, False, + XmNshadowThickness, 2, + XmNborderWidth, 0, + XmNspacing, 0, + XmNmarginWidth, 0, + XmNmarginHeight, 0, XmNmultiClick, XmMULTICLICK_KEEP, XmNlabelType, XmPIXMAP, NULL); @@ -325,9 +330,9 @@ bool wxToolBar::Realize() wxColour col; col.SetPixel(backgroundPixel); - wxBitmap newBitmap = wxCreateMaskedBitmap(bmp, col); + bmp = wxCreateMaskedBitmap(bmp, col); - tool->SetBitmap1(newBitmap); + tool->SetBitmap1(bmp); } // Create a selected/toggled bitmap. If there isn't a 2nd @@ -388,12 +393,6 @@ bool wxToolBar::Realize() tool->SetPixmap(pixmap2); XtVaSetValues (button, - XmNindicatorOn, False, - XmNshadowThickness, 2, - // XmNborderWidth, 0, - // XmNspacing, 0, - XmNmarginWidth, 0, - XmNmarginHeight, 0, XmNfillOnSelect, True, XmNlabelPixmap, pixmap, XmNselectPixmap, pixmap2,