aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/unix/label.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/libui/unix/label.c')
-rw-r--r--src/libui_sdl/libui/unix/label.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/libui_sdl/libui/unix/label.c b/src/libui_sdl/libui/unix/label.c
deleted file mode 100644
index b39fc7c..0000000
--- a/src/libui_sdl/libui/unix/label.c
+++ /dev/null
@@ -1,36 +0,0 @@
-// 11 june 2015
-#include "uipriv_unix.h"
-
-struct uiLabel {
- uiUnixControl c;
- GtkWidget *widget;
- GtkMisc *misc;
- GtkLabel *label;
-};
-
-uiUnixControlAllDefaults(uiLabel)
-
-char *uiLabelText(uiLabel *l)
-{
- return uiUnixStrdupText(gtk_label_get_text(l->label));
-}
-
-void uiLabelSetText(uiLabel *l, const char *text)
-{
- gtk_label_set_text(l->label, text);
-}
-
-uiLabel *uiNewLabel(const char *text)
-{
- uiLabel *l;
-
- uiUnixNewControl(uiLabel, l);
-
- l->widget = gtk_label_new(text);
- l->misc = GTK_MISC(l->widget);
- l->label = GTK_LABEL(l->widget);
-
- gtk_misc_set_alignment(l->misc, 0, 0);
-
- return l;
-}