diff options
-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(); |