commit be0758a1aa0922bd4b5dc32d31b196c650235867 parent 5e9ee3427898e799cebe06787b409ca770e6e1ee Author: TheJackiMonster <thejackimonster@gmail.com> Date: Fri, 19 Nov 2021 00:41:35 +0100 Added automatic activation and selection of new chats Signed-off-by: TheJackiMonster <thejackimonster@gmail.com> Diffstat:
| M | src/event.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/event.c b/src/event.c @@ -77,6 +77,13 @@ _add_new_chat_entry(MESSENGER_Application *app, ); ui->chat_entries = g_list_append(ui->chat_entries, entry); + + GtkListBoxRow *row = GTK_LIST_BOX_ROW( + gtk_widget_get_parent(entry->entry_box) + ); + + gtk_list_box_select_row(ui->chats_listbox, row); + gtk_widget_activate(GTK_WIDGET(row)); } static int