diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-09 02:56:51 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-09 02:56:51 -0400 |
| commit | 723f2af8c621525848a234d88d98b5107cf0d683 (patch) | |
| tree | 591810eab724fe1f5bd9755555d260734d23c691 /new/window_unix.c | |
| parent | a0073727c8991e5dbc17d8f7bf02028159aebd90 (diff) | |
Implemented the text routines on the GTK+ backend. They work!
Diffstat (limited to 'new/window_unix.c')
| -rw-r--r-- | new/window_unix.c | 10 |
1 files changed, 9 insertions, 1 deletions
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) { |
