summaryrefslogtreecommitdiff
path: root/new/unix/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/unix/window.c')
-rw-r--r--new/unix/window.c6
1 files changed, 3 insertions, 3 deletions
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;