summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-17 12:58:08 +0200
committerxengineering <me@xengineering.eu>2022-08-19 12:13:49 +0200
commita384179816de9c33df5a03a0b7272be0c115b050 (patch)
tree602f20fa640af0f7bec0799a33512247bf8508af /gtk.c
parente6667aed7aaa5e60b3ded91aa5a6c28bf6da3314 (diff)
downloadlimox-a384179816de9c33df5a03a0b7272be0c115b050.tar
limox-a384179816de9c33df5a03a0b7272be0c115b050.tar.zst
limox-a384179816de9c33df5a03a0b7272be0c115b050.zip
Implement chat to roster transition
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk.c b/gtk.c
index d4b1cfc..c84534c 100644
--- a/gtk.c
+++ b/gtk.c
@@ -179,6 +179,12 @@ void gui_run(void) {
}
+static void to_roster(void) {
+
+ gtk_stack_set_visible_child(GTK_STACK(stack), roster_layout_box);
+
+}
+
void* gui_add_chat(void) {
// create chat page (GtkBox) and add it to the stack
@@ -188,7 +194,7 @@ void* gui_add_chat(void) {
// create and add back button
GtkWidget* back = gtk_button_new_with_label("back");
gtk_box_append(GTK_BOX(chat_layout_box), back);
- //g_signal_connect_swapped(back, "clicked", G_CALLBACK(to_roster), NULL); TODO
+ g_signal_connect_swapped(back, "clicked", G_CALLBACK(to_roster), NULL);
// create and add scrolled window
GtkWidget* scrolled = gtk_scrolled_window_new();