aboutsummaryrefslogtreecommitdiff
path: root/src/ui/contacts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/contacts.c')
-rw-r--r--src/ui/contacts.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ui/contacts.c b/src/ui/contacts.c
index 21a7932..cc349f3 100644
--- a/src/ui/contacts.c
+++ b/src/ui/contacts.c
@@ -28,8 +28,6 @@
28#include "contact_entry.h" 28#include "contact_entry.h"
29#include "../application.h" 29#include "../application.h"
30 30
31#include <gnunet/gnunet_identity_service.h>
32
33static void 31static void
34handle_close_button_click(UNUSED GtkButton *button, 32handle_close_button_click(UNUSED GtkButton *button,
35 gpointer user_data) 33 gpointer user_data)
@@ -134,8 +132,7 @@ _iterate_contacts(void *cls,
134 const char *title; 132 const char *title;
135 title = GNUNET_CHAT_contact_get_name(contact); 133 title = GNUNET_CHAT_contact_get_name(contact);
136 134
137 const struct GNUNET_IDENTITY_PublicKey *key; 135 const char *key = GNUNET_CHAT_contact_get_key(contact);
138 key = GNUNET_CHAT_contact_get_key(contact);
139 136
140 UI_CONTACT_ENTRY_Handle *entry = ui_contact_entry_new(); 137 UI_CONTACT_ENTRY_Handle *entry = ui_contact_entry_new();
141 gtk_container_add( 138 gtk_container_add(
@@ -152,11 +149,7 @@ _iterate_contacts(void *cls,
152 } 149 }
153 150
154 if (key) 151 if (key)
155 { 152 gtk_label_set_text(entry->subtitle_label, key);
156 char *key_string = GNUNET_IDENTITY_public_key_to_string(key);
157 gtk_label_set_text(entry->subtitle_label, key_string);
158 GNUNET_free(key_string);
159 }
160 153
161 GtkListBoxRow *row = GTK_LIST_BOX_ROW( 154 GtkListBoxRow *row = GTK_LIST_BOX_ROW(
162 gtk_widget_get_parent(entry->entry_box) 155 gtk_widget_get_parent(entry->entry_box)