#include <gtk/gtk.h>

int main( int   argc,
          char *argv[] )
{
    GtkWidget *window, *dialog;
    
    gtk_init (&argc, &argv);
    
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

    gtk_widget_show_all(window);
    
    dialog = gtk_file_chooser_dialog_new("Select file",
            GTK_WINDOW(window), GTK_FILE_CHOOSER_ACTION_OPEN,
            GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
            GTK_STOCK_OPEN, GTK_RESPONSE_OK,
            NULL);

    gtk_dialog_run(GTK_DIALOG(dialog));

    gtk_main ();
    
    return 0;
}

