diff options
author | xengineering <me@xengineering.eu> | 2022-08-17 12:58:08 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-08-19 12:13:49 +0200 |
commit | a384179816de9c33df5a03a0b7272be0c115b050 (patch) | |
tree | 602f20fa640af0f7bec0799a33512247bf8508af /gtk.c | |
parent | e6667aed7aaa5e60b3ded91aa5a6c28bf6da3314 (diff) | |
download | limox-a384179816de9c33df5a03a0b7272be0c115b050.tar limox-a384179816de9c33df5a03a0b7272be0c115b050.tar.zst limox-a384179816de9c33df5a03a0b7272be0c115b050.zip |
Implement chat to roster transition
Diffstat (limited to 'gtk.c')
-rw-r--r-- | gtk.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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(); |