BonoboPersistClass *persist_class = BONOBO_PERSIST_CLASS(klass);
POA_Bonobo_PersistFile__epv *epv = &klass->epv;
+#ifdef DEBUG
printf("persist file class init\n");
+#endif
gtk_math_view_persist_file_parent_class = g_type_class_peek_parent(klass);
epv->load = load_implementation;
gtk_math_view_persist_file_get_type(void)
{
static GType type = 0;
+#ifdef DEBUG
printf("persist file get type\n");
+#endif
if(!type){
GTypeInfo info = {
sizeof(GtkMathViewPersistFileClass),
{
CORBA_exception_set(ev,CORBA_USER_EXCEPTION,ex_Bonobo_Persist_WrongDataType,NULL);
}
+ bonobo_object_unref(BONOBO_OBJECT(file));
return ;
}
static void
-save_implementation(PortableServer_Servant servant,const gchar *path,CORBA_Environment *ev)
+save_implementation(PortableServer_Servant servant,
+ const gchar *path,
+ CORBA_Environment *ev)
{
bonobo_exception_set(ev,"save_exception");
bonobo_exception_add_handler_str("save_exception",