aboutsummaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/event.c b/src/event.c
index de009b4..851536f 100644
--- a/src/event.c
+++ b/src/event.c
@@ -27,15 +27,13 @@
27void 27void
28event_update_profile(MESSENGER_Application *app) 28event_update_profile(MESSENGER_Application *app)
29{ 29{
30 //printf("event_update_profile\n"); 30 UI_MESSENGER_Handle* ui = &(app->ui.messenger);
31 31
32 const char *name = GNUNET_CHAT_get_name(app->chat.messenger.handle); 32 const char *name = GNUNET_CHAT_get_name(app->chat.messenger.handle);
33 33
34 //printf("A: %s\n", name);
35
36 if (name) 34 if (name)
37 { 35 {
38 hdy_avatar_set_text(app->ui.messenger.profile_avatar, name); 36 hdy_avatar_set_text(ui->profile_avatar, name);
39 gtk_label_set_text(app->ui.messenger.profile_label, name); 37 gtk_label_set_text(ui->profile_label, name);
40 } 38 }
41} 39}