diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-11-19 00:41:35 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-11-19 00:41:35 +0100 |
commit | be0758a1aa0922bd4b5dc32d31b196c650235867 (patch) | |
tree | 295139f93272abec8c244ad143b8035f454f91d9 | |
parent | 5e9ee3427898e799cebe06787b409ca770e6e1ee (diff) | |
download | messenger-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.c | 7 |
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 | ||
82 | static int | 89 | static int |