diff options
Diffstat (limited to 'src/event.c')
-rw-r--r-- | src/event.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c index e04fe5c..e023613 100644 --- a/src/event.c +++ b/src/event.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "event.h" | 25 | #include "event.h" |
26 | 26 | ||
27 | #include "ui/chat_entry.h" | 27 | #include "ui/chat_entry.h" |
28 | #include "ui/message.h" | ||
28 | 29 | ||
29 | static int | 30 | static int |
30 | _iterate_profile_contacts(void *cls, | 31 | _iterate_profile_contacts(void *cls, |
@@ -93,4 +94,14 @@ event_update_profile(MESSENGER_Application *app) | |||
93 | 94 | ||
94 | GNUNET_CHAT_iterate_contacts(chat->handle, _iterate_profile_contacts, app); | 95 | GNUNET_CHAT_iterate_contacts(chat->handle, _iterate_profile_contacts, app); |
95 | GNUNET_CHAT_iterate_groups(chat->handle, _iterate_profile_groups, app); | 96 | GNUNET_CHAT_iterate_groups(chat->handle, _iterate_profile_groups, app); |
97 | |||
98 | UI_CHAT_ENTRY_Handle *entry = ui_chat_entry_new(); | ||
99 | gtk_container_add(GTK_CONTAINER(ui->chats_listbox), entry->entry_box); | ||
100 | g_free(entry); | ||
101 | |||
102 | for (int i = 0; i < 8; i++) { | ||
103 | UI_MESSAGE_Handle *message = ui_message_new(app, i % 2 == 0); | ||
104 | gtk_container_add(GTK_CONTAINER(ui->messages_listbox), message->message_box); | ||
105 | g_free(message); | ||
106 | } | ||
96 | } | 107 | } |