#include <gtk/gtk.h>

static void destroy (GtkWidget *widget, gpointer data)
{
    gtk_main_quit ();
}

int main( int   argc,
          char *argv[] )
{
    gtk_init (&argc, &argv);
    
    GtkWidget *entry;
    entry = gtk_entry_new ();

    GtkWidget *expander;
    expander = gtk_expander_new ("test");
    gtk_expander_set_expanded (GTK_EXPANDER(expander), TRUE);
    gtk_container_add (GTK_CONTAINER(expander), entry);
    
    GtkWidget *window;
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_container_add (GTK_CONTAINER(window), expander);
    g_signal_connect (window, "destroy", G_CALLBACK (destroy), NULL);
    gtk_widget_show_all (window);

    /* gtk_expander_set_expanded (GTK_EXPANDER(expander), TRUE); */
    
    gtk_main ();
    return 0;
}
