diff --git a/src/ui/sand_box.c b/src/ui/sand_box.c index 3ea2ee1..439bab9 100644 --- a/src/ui/sand_box.c +++ b/src/ui/sand_box.c @@ -35,7 +35,7 @@ void on_activate_window_creation (GtkApplication *app, gpointer data) GtkWidget *that_window = gtk_application_window_new (gtk_application_new ("org.gtk.test", 0)); g_signal_connect (G_OBJECT (that_window), "destroy", G_CALLBACK(on_destroy), "sand_box.c / on_activate_window_creation() > exit(0) closes window\n"); - gtk_window_set_title (GTK_WINDOW(that_window), "Ignition !"); + gtk_window_set_title (GTK_WINDOW(that_window), "In the lab "); gtk_window_set_default_size (GTK_WINDOW(that_window), 180, 140); GtkWidget *my_scrolling_thing = gtk_scrolled_window_new (); gtk_window_set_child (GTK_WINDOW (that_window), my_scrolling_thing); @@ -47,9 +47,8 @@ void on_activate_window_creation (GtkApplication *app, gpointer data) static void on_setup_cb (GtkSignalListItemFactory *self, GtkListItem *my_list_item, gpointer user_data) { - GtkWidget *my_label = gtk_label_new ("here am I"); - GtkWidget *my_expander = gtk_list_item_get_child (my_list_item); - gtk_list_item_set_child (my_list_item, my_label); + GtkWidget *my_expander = gtk_expander_new (GTK_LABEL(my_list_item)); // ? = gtk_expander_new (self); + gtk_list_item_set_child (my_list_item, my_expander); } static void on_bind_cb (GtkSignalListItemFactory *self, GtkListItem *my_list_item, gpointer user_data)