summaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h
index 3c06bcc..7547b0c 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -28,12 +28,33 @@
#include <gtk-3.0/gtk/gtk.h>
#include <libhandy-1/handy.h>
+/**
+ * Sets the text of a GtkLabel applying automatic utf8
+ * conversion.
+ *
+ * @param label Label
+ * @param text Non-utf8 text
+ */
void
ui_label_set_text(GtkLabel *label, const char *text);
+/**
+ * Sets the text of a GtkEntry applying automatic utf8
+ * conversion.
+ *
+ * @param entry Entry
+ * @param text Non-utf8 text
+ */
void
ui_entry_set_text(GtkEntry *entry, const char *text);
+/**
+ * Sets the text of a HdyAvatar applying automatic utf8
+ * conversion.
+ *
+ * @param avatar Avatar
+ * @param text Non-utf8 text
+ */
void
ui_avatar_set_text(HdyAvatar *avatar, const char *text);