aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-11-19 00:41:35 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-11-19 00:41:35 +0100
commitbe0758a1aa0922bd4b5dc32d31b196c650235867 (patch)
tree295139f93272abec8c244ad143b8035f454f91d9
parent5e9ee3427898e799cebe06787b409ca770e6e1ee (diff)
downloadmessenger-gtk-be0758a1aa0922bd4b5dc32d31b196c650235867.tar.gz
messenger-gtk-be0758a1aa0922bd4b5dc32d31b196c650235867.zip
Added automatic activation and selection of new chats
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--src/event.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c
index a9ae35d..7047650 100644
--- a/src/event.c
+++ b/src/event.c
@@ -77,6 +77,13 @@ _add_new_chat_entry(MESSENGER_Application *app,
77 ); 77 );
78 78
79 ui->chat_entries = g_list_append(ui->chat_entries, entry); 79 ui->chat_entries = g_list_append(ui->chat_entries, entry);
80
81 GtkListBoxRow *row = GTK_LIST_BOX_ROW(
82 gtk_widget_get_parent(entry->entry_box)
83 );
84
85 gtk_list_box_select_row(ui->chats_listbox, row);
86 gtk_widget_activate(GTK_WIDGET(row));
80} 87}
81 88
82static int 89static int