rendered paste bodyint AbiWidgetConvertMain(char * SourceFile, char * DestFile, char * Format)
{
gboolean Result;
GtkWidget * window;
GtkWidget * abi;
gtk_init (0, NULL);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_usize(GTK_WIDGET(window),640,480);
/* Initialize libabiword */
libabiword_init(0, NULL);
/* Construct our widget! */
abi = abi_widget_new ();
gtk_container_add (GTK_CONTAINER (window), abi);
abi_widget_load_file ( ABI_WIDGET (abi), SourceFile, "");
Result = abi_widget_save ( ABI_WIDGET (abi), DestFile, Format, "" );
/* Close libabiword */
libabiword_shutdown ();
gtk_widget_destroy( abi );
gtk_widget_destroy( window );
gtk_main_quit();
if ( Result )
return ( 0 );
else
return ( 1 );
}