aboutsummaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/event.c b/src/event.c
index 24b7771..4df457b 100644
--- a/src/event.c
+++ b/src/event.c
@@ -26,11 +26,11 @@
26 26
27#include "contact.h" 27#include "contact.h"
28#include "file.h" 28#include "file.h"
29#include "ui/account_entry.h"
29 30
30#include "ui/chat_entry.h" 31#include "ui/chat_entry.h"
31#include "ui/contact_entry.h" 32#include "ui/contact_entry.h"
32#include "ui/message.h" 33#include "ui/message.h"
33#include "ui/profile_entry.h"
34 34
35static void 35static void
36_close_notification(NotifyNotification* notification, 36_close_notification(NotifyNotification* notification,
@@ -100,15 +100,15 @@ _iterate_accounts(void *cls,
100 100
101 const gchar *name = GNUNET_CHAT_account_get_name(account); 101 const gchar *name = GNUNET_CHAT_account_get_name(account);
102 102
103 UI_PROFILE_ENTRY_Handle *profile = ui_profile_entry_new(app); 103 UI_ACCOUNT_ENTRY_Handle *entry = ui_account_entry_new(app);
104 104
105 hdy_avatar_set_text(profile->entry_avatar, name); 105 hdy_avatar_set_text(entry->entry_avatar, name);
106 gtk_label_set_text(profile->entry_label, name); 106 gtk_label_set_text(entry->entry_label, name);
107 107
108 gtk_list_box_prepend(ui->accounts_listbox, profile->entry_box); 108 gtk_list_box_prepend(ui->accounts_listbox, entry->entry_box);
109 109
110 GtkListBoxRow *row = GTK_LIST_BOX_ROW( 110 GtkListBoxRow *row = GTK_LIST_BOX_ROW(
111 gtk_widget_get_parent(profile->entry_box) 111 gtk_widget_get_parent(entry->entry_box)
112 ); 112 );
113 113
114 g_hash_table_insert(ui->bindings, row, account); 114 g_hash_table_insert(ui->bindings, row, account);
@@ -117,7 +117,7 @@ _iterate_accounts(void *cls,
117 ((app->chat.identity) && (0 == g_strcmp0(app->chat.identity, name)))) 117 ((app->chat.identity) && (0 == g_strcmp0(app->chat.identity, name))))
118 gtk_widget_activate(GTK_WIDGET(row)); 118 gtk_widget_activate(GTK_WIDGET(row));
119 119
120 ui_profile_entry_delete(profile); 120 ui_account_entry_delete(entry);
121 return GNUNET_YES; 121 return GNUNET_YES;
122} 122}
123 123