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/entry_unix.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'new/entry_unix.c') diff --git a/new/entry_unix.c b/new/entry_unix.c index 2316618..04005d3 100644 --- a/new/entry_unix.c +++ b/new/entry_unix.c @@ -30,3 +30,13 @@ uiControl *uiNewEntry(void) return e->c; } + +char *uiEntryText(uiControl *c) +{ + return g_strdup(gtk_entry_get_text(GTK_ENTRY(uiControlHandle(c)))); +} + +void uiEntrySetText(uiControl *c, const char *text) +{ + gtk_entry_set_text(GTK_ENTRY(uiControlHandle(c)), text); +} -- cgit v1.2.3