#include <gtk/gtk.h>

int
main( int    argc,
      char **argv )
{
    GtkWidget *assist,
              *page,
              *tmp;

    gtk_init( &argc, &argv );

    assist = gtk_assistant_new();

    page = gtk_label_new( "page 1" );
    gtk_assistant_append_page( GTK_ASSISTANT( assist ), page );

    tmp = gtk_assistant_get_nth_page( GTK_ASSISTANT( assist), -1 );
    if( tmp == page )
        g_print( "OK\n" );
    else
        g_print( "FAILED\n" );

    return 0;
}
