merge wxmac change from the 350 branch

svn: r3366
This commit is contained in:
Eli Barzilay 2006-06-15 03:11:31 +00:00
parent 2707426cdf
commit a0e11bb2d2

View File

@ -173,8 +173,7 @@ Bool wxSlider::Create(wxPanel *panel, wxFunction func, char *label, int value,
{ {
void *rc; void *rc;
rc = WRAP_SAFEREF(this); rc = WRAP_SAFEREF(this);
refcon = rc; SetControlReference(cMacControl, (long)rc);
SetControlReference(cMacControl, (long)refcon);
} }
if (label) { if (label) {
@ -219,10 +218,10 @@ wxSlider::~wxSlider(void)
{ {
void *rc; void *rc;
::DisposeControl(cMacControl);
rc = (void *)GetControlReference(cMacControl); rc = (void *)GetControlReference(cMacControl);
FREE_SAFEREF(rc); FREE_SAFEREF(rc);
::DisposeControl(cMacControl);
} }