CORBA_Environment ev;
CORBA_exception_init (&ev);
+#if 0
+ stream = bonobo_stream_open ("fs", filename,
+ Bonobo_Storage_READ, 0);
+#endif
+
/*if (stream == NULL)
{
g_warning ("Couldn't load `%s'\n", filename);
} else*/ {
Bonobo_Stream corba_stream;
- //corba_stream = bonobo_object_corba_objref (stream);
- //Bonobo_Stream_truncate (corba_stream, 0, &ev);
- Bonobo_PersistStream_load (pstream, corba_stream,"",&ev);
+ corba_stream = bonobo_object_corba_objref (stream);
+ Bonobo_Stream_truncate (corba_stream, 0, &ev);
+ Bonobo_PersistStream_load (pstream, corba_stream, "application/mathml+xml", &ev);
}
Bonobo_Unknown_unref (pstream, &ev);
CORBA_Object_release (pstream, &ev);
(GTK_FILE_SELECTION (file_selection_info.widget));
switch (file_selection_info.Operations) {
case LOAD_STREAM:
- load_through_persist_stream (fname, interface);
- break;
+ load_through_persist_stream (fname, interface);
+ break;
case LOAD_FILE:
load_through_persist_file (fname, interface);
break;