#include "gtk/gtk.h"

int
main (int argc, char* argv[])
{  
  GtkWidget *exportdlg;

  gtk_init (&argc, &argv);

  exportdlg = gtk_file_chooser_dialog_new_with_backend(("Export Diagram"),
					    NULL,
					    GTK_FILE_CHOOSER_ACTION_SAVE,
					    "gtk+", /* default, not gnome-vfs */
					    GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
					    GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
					    NULL);
  g_signal_connect(GTK_OBJECT(exportdlg), "destroy",
		   G_CALLBACK(gtk_main_quit), NULL);

  if (argc > 1)
    gtk_file_chooser_set_filename (GTK_FILE_CHOOSER(exportdlg), argv[1]);
  gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER(exportdlg), "testexport.c");

  gtk_widget_show(exportdlg);

  gtk_main ();

  return 0;
}
