diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-11-14 18:11:33 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-11-14 18:11:33 +0100 |
commit | f6e0bb11c86814b5246aa0e03938ade2f4acd2d1 (patch) | |
tree | 9f09b00abe803a00693c4313e3eba409062abb5a /src/ui/new_platform.c | |
parent | bcf36809da07651976fc6528a391f3b51fc5ce0b (diff) | |
download | messenger-gtk-f6e0bb11c86814b5246aa0e03938ade2f4acd2d1.tar.gz messenger-gtk-f6e0bb11c86814b5246aa0e03938ade2f4acd2d1.zip |
Fixing ui inconsistency, removing placeholder values
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui/new_platform.c')
-rw-r--r-- | src/ui/new_platform.c | 8 |
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 | ||
58 | static void | 62 | static void |