aboutsummaryrefslogtreecommitdiff
path: root/src/ui/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/message.c')
-rw-r--r--src/ui/message.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/ui/message.c b/src/ui/message.c
index def4524..cacf666 100644
--- a/src/ui/message.c
+++ b/src/ui/message.c
@@ -27,8 +27,7 @@
27#include "../application.h" 27#include "../application.h"
28 28
29UI_MESSAGE_Handle* 29UI_MESSAGE_Handle*
30ui_message_new(MESSENGER_Application *app, 30ui_message_new(UI_MESSAGE_Type type)
31 UI_MESSAGE_Type type)
32{ 31{
33 UI_MESSAGE_Handle* handle = g_malloc(sizeof(UI_MESSAGE_Handle)); 32 UI_MESSAGE_Handle* handle = g_malloc(sizeof(UI_MESSAGE_Handle));
34 33
@@ -63,14 +62,6 @@ ui_message_new(MESSENGER_Application *app,
63 gtk_builder_get_object(handle->builder, "sender_label") 62 gtk_builder_get_object(handle->builder, "sender_label")
64 ); 63 );
65 64
66 if (UI_MESSAGE_SENT == handle->type)
67 {
68 const char *sender = GNUNET_CHAT_get_name(app->chat.messenger.handle);
69
70 hdy_avatar_set_text(handle->sender_avatar, sender);
71 gtk_label_set_text(handle->sender_label, sender);
72 }
73
74 handle->text_label = GTK_LABEL( 65 handle->text_label = GTK_LABEL(
75 gtk_builder_get_object(handle->builder, "text_label") 66 gtk_builder_get_object(handle->builder, "text_label")
76 ); 67 );