#include <gtk/gtk.h>

int
main (int argc, char **argv)
{
  GtkWidget      *window;
  GtkFileChooser *chooser;
  char           *folder;

  gtk_init (&argc, &argv);

  window = gtk_file_chooser_dialog_new ("Open", NULL,
					GTK_FILE_CHOOSER_ACTION_OPEN,
					GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
					GTK_STOCK_OPEN,   GTK_RESPONSE_OK,
					NULL);
  chooser = GTK_FILE_CHOOSER (window);

  folder = g_build_filename (g_get_home_dir(), "tmp", NULL);
  gtk_file_chooser_add_shortcut_folder (chooser, folder, NULL);
  gtk_file_chooser_set_current_folder (chooser, folder);
  g_free (folder);

  gtk_dialog_run (GTK_DIALOG (window));
  
  return 0;
}
