aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-11-20 04:21:17 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-11-20 04:21:17 +0100
commitfc7f147d38bd144d3868861e97923c87d9d1a283 (patch)
tree17c1ee5d0fe480650ac22e07c2f51e67cfa35643 /src/ui
parent3db72a57b0973b24a69c1322345b7ddbbcdc5116 (diff)
downloadmessenger-gtk-fc7f147d38bd144d3868861e97923c87d9d1a283.tar.gz
messenger-gtk-fc7f147d38bd144d3868861e97923c87d9d1a283.zip
Added first ui files for status messages and integrated public key api changes
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui')
-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)