diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-15 18:49:45 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-15 18:49:45 -0400 |
| commit | 518a5ddbf15d50a254c732a80d5907ef8878abe0 (patch) | |
| tree | 48cf259f98994e4570e65c389fcd9824272884ad /new/entry_unix.c | |
| parent | 50ae3ca045e7f5f5744043df0a4506e2f6930bb1 (diff) | |
Split all OS backends into their own folders.
Diffstat (limited to 'new/entry_unix.c')
| -rw-r--r-- | new/entry_unix.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/new/entry_unix.c b/new/entry_unix.c deleted file mode 100644 index 43caea3..0000000 --- a/new/entry_unix.c +++ /dev/null @@ -1,41 +0,0 @@ -// 8 april 2015 -#include "uipriv_unix.h" - -struct entry { -}; - -static void onDestroy(GtkWidget *widget, gpointer data) -{ - struct entry *e = (struct entry *) data; - - uiFree(e); -} - -uiControl *uiNewEntry(void) -{ - uiControl *c; - struct entry *e; - GtkWidget *widget; - - c = uiUnixNewControl(GTK_TYPE_ENTRY, - FALSE, FALSE, - NULL); - - widget = GTK_WIDGET(uiControlHandle(c)); - - e = uiNew(struct entry); - g_signal_connect(widget, "destroy", G_CALLBACK(onDestroy), e); - c->data = e; - - return 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); -} |
