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.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/ui/new_platform.c b/src/ui/new_platform.c
index 46384c0..c1d4491 100644
--- a/src/ui/new_platform.c
+++ b/src/ui/new_platform.c
@@ -50,9 +50,20 @@ handle_confirm_button_click(UNUSED GtkButton *button,
50{ 50{
51 MESSENGER_Application *app = (MESSENGER_Application*) user_data; 51 MESSENGER_Application *app = (MESSENGER_Application*) user_data;
52 52
53 const char *topic = gtk_entry_get_text(app->ui.new_platform.platform_entry); 53 const gchar *topic = gtk_entry_get_text(app->ui.new_platform.platform_entry);
54 54
55 GNUNET_CHAT_group_create(app->chat.messenger.handle, topic); 55 GString *topic_string = g_string_new(topic);
56
57 struct GNUNET_CHAT_Group *group = GNUNET_CHAT_group_create(
58 app->chat.messenger.handle,
59 topic_string->str
60 );
61
62 g_string_prepend_c(topic_string, '#');
63
64 GNUNET_CHAT_group_set_name(group, topic_string->str);
65
66 g_string_free(topic_string, TRUE);
56 67
57 gtk_window_close(GTK_WINDOW(app->ui.new_platform.platform_dialog)); 68 gtk_window_close(GTK_WINDOW(app->ui.new_platform.platform_dialog));
58} 69}