diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-16 15:08:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-16 15:08:49 -0400 |
| commit | 6b08a2b18f9c5f0ddc01a37e2cf26fa7bdf9d98e (patch) | |
| tree | cbec9d83a0302928dab0855cd9daa87720d56ac1 /new/darwin/label.m | |
| parent | 946b3ea34228e92eb39b1be587ede058d8942e34 (diff) | |
Fixed the OS X build, including warnings. It works. I'm still a bit unhappy about the way these backends are turning out...
Diffstat (limited to 'new/darwin/label.m')
| -rw-r--r-- | new/darwin/label.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/new/darwin/label.m b/new/darwin/label.m index 4f20e98..56780d0 100644 --- a/new/darwin/label.m +++ b/new/darwin/label.m @@ -34,7 +34,7 @@ static void labelSetText(uiLabel *l, const char *text) [t setStringValue:toNSString(text)]; } -uiControl *uiNewLabel(const char *text) +uiLabel *uiNewLabel(const char *text) { uiLabel *l; uiLabelNSTextField *t; @@ -42,7 +42,7 @@ uiControl *uiNewLabel(const char *text) l = uiNew(uiLabel); uiDarwinNewControl(uiControl(l), [uiLabelNSTextField class], NO, NO); - t = (uiLabelNSTextField *) uiControlHandle(c); + t = (uiLabelNSTextField *) uiControlHandle(uiControl(l)); [t setStringValue:toNSString(text)]; [t setEditable:NO]; @@ -53,7 +53,7 @@ uiControl *uiNewLabel(const char *text) uiLabel(l)->Text = labelText; uiLabel(l)->SetText = labelSetText; - t.uiC = l; + t.uiL = l; - return t.uiC; + return t.uiL; } |
