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/entry_unix.c | |
| parent | a0073727c8991e5dbc17d8f7bf02028159aebd90 (diff) | |
Implemented the text routines on the GTK+ backend. They work!
Diffstat (limited to 'new/entry_unix.c')
| -rw-r--r-- | new/entry_unix.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); +} |
