From 0c73a7fb80e0fc59f1fbde07053bd55fe03dd3cc Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 15 Apr 2015 23:07:43 -0400 Subject: Fixed Unix backend build errors. Impressively, IT STILL WORKS! Now to fix the warnings... --- new/unix/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'new/unix/window.c') diff --git a/new/unix/window.c b/new/unix/window.c index 7ecab4b..c030d87 100644 --- a/new/unix/window.c +++ b/new/unix/window.c @@ -46,7 +46,7 @@ static uintptr_t handle(uiWindow *ww) return (uintptr_t) (w->widget); } -static char *title(uiWindow *ww) +static char *getTitle(uiWindow *ww) { struct window *w = (struct window *) ww; @@ -109,7 +109,7 @@ static void setMargined(uiWindow *ww, int margined) uiParentUpdate(w->content); } -uiWindow *uiNewWindow(char *title, int width, int height) +uiWindow *uiNewWindow(const char *title, int width, int height) { struct window *w; @@ -124,7 +124,7 @@ uiWindow *uiNewWindow(char *title, int width, int height) uiWindow(w)->Destroy = windowDestroy; uiWindow(w)->Handle = handle; - uiWindow(w)->Title = title; + uiWindow(w)->Title = getTitle; uiWindow(w)->SetTitle = setTitle; uiWindow(w)->Show = show; uiWindow(w)->Hide = hide; -- cgit v1.2.3