aboutsummaryrefslogtreecommitdiff
path: root/src/ui/new_platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/new_platform.c')
-rw-r--r--src/ui/new_platform.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/new_platform.c b/src/ui/new_platform.c
index 75966b5..e4f8c4a 100644
--- a/src/ui/new_platform.c
+++ b/src/ui/new_platform.c
@@ -39,7 +39,6 @@ _open_new_platform(GtkEntry *entry, MESSENGER_Application *app)
39 ); 39 );
40 40
41 g_string_prepend_c(topic_string, '#'); 41 g_string_prepend_c(topic_string, '#');
42
43 GNUNET_CHAT_group_set_name(group, topic_string->str); 42 GNUNET_CHAT_group_set_name(group, topic_string->str);
44 43
45 g_string_free(topic_string, TRUE); 44 g_string_free(topic_string, TRUE);
@@ -52,7 +51,12 @@ handle_platform_entry_changed(GtkEditable *editable,
52 HdyAvatar *avatar = HDY_AVATAR(user_data); 51 HdyAvatar *avatar = HDY_AVATAR(user_data);
53 GtkEntry *entry = GTK_ENTRY(editable); 52 GtkEntry *entry = GTK_ENTRY(editable);
54 53
55 hdy_avatar_set_text(avatar, gtk_entry_get_text(entry)); 54 GString *topic_string = g_string_new(gtk_entry_get_text(entry));
55
56 g_string_prepend_c(topic_string, '#');
57 hdy_avatar_set_text(avatar, topic_string->str);
58
59 g_string_free(topic_string, TRUE);
56} 60}
57 61
58static void 62static void