+
#include <bonobo.h>
#include <bonobo/bonobo-shlib-factory.h>
#include <gtkmathview.h>
#include "control-factory.h"
+#include "view.h"
typedef struct _GtkMathViewControlData
{
BonoboPropertyBag *prop_bag;
BonoboObject *persist_file;
BonoboObject *persist_stream;
-
+ View* view;
+
math_view = gtk_math_view_new(NULL,NULL);
gtk_widget_show(math_view);
gtk_container_add(GTK_CONTAINER (scrolled_window), GTK_WIDGET (control_data->math_view));
+ view = view_new();
+ bonobo_object_add_interface(BONOBO_OBJECT(control), BONOBO_OBJECT(view));
+
persist_file = gtk_math_view_persist_file_new(GTK_MATH_VIEW(math_view));
bonobo_object_add_interface(BONOBO_OBJECT(control), persist_file);