summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();