From 723f2af8c621525848a234d88d98b5107cf0d683 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 9 Apr 2015 02:56:51 -0400 Subject: Implemented the text routines on the GTK+ backend. They work! --- new/window_unix.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'new/window_unix.c') diff --git a/new/window_unix.c b/new/window_unix.c index 293fa51..dca52e3 100644 --- a/new/window_unix.c +++ b/new/window_unix.c @@ -39,7 +39,15 @@ uintptr_t uiWindowHandle(uiWindow *w) return (uintptr_t) (w->widget); } -// TODO titles +char *uiWindowTitle(uiWindow *w) +{ + return g_strdup(gtk_window_get_title(GTK_WINDOW(w->widget))); +} + +void uiWindowSetTitle(uiWindow *w, const char *title) +{ + gtk_window_set_title(GTK_WINDOW(w->widget), title); +} void uiWindowShow(uiWindow *w) { -- cgit v1.2.3