}
static void
-impl_view_freeze(PortableServer_Servant servant,
+impl_view_freeze(PortableServer_Servant servant,
CORBA_Environment *ev)
{
View* view = VIEW (bonobo_object (servant));
- printf("called freeze\n");
+ gtk_math_view_freeze(view->control_data->math_view);
}
static void
-impl_view_thaw(PortableServer_Servant servant,
+impl_view_thaw(PortableServer_Servant servant,
CORBA_Environment *ev)
{
View* view = VIEW (bonobo_object (servant));
- printf("called thaw\n");
+ gtk_math_view_thaw(view->control_data->math_view);
+}
+
+static void
+impl_view_load(PortableServer_Servant servant,
+ const CORBA_char *uri,
+ CORBA_Environment *ev)
+{
+ View* view = VIEW (bonobo_object (servant));
+ gtk_math_view_load_uri(view->control_data->math_view, uri);
}
static void
BONOBO_TYPE_FUNC_FULL (View, GNOME_GtkMathView_View, BONOBO_TYPE_OBJECT, view)
View*
-view_new()
+view_new(GtkMathViewControlData* control_data)
{
- View* view = g_object_new(VIEW_TYPE, NULL);
+ View* view;
+ g_return_val_if_fail(control_data != NULL, NULL);
+ view = g_object_new(VIEW_TYPE, NULL);
+ view->control_data = control_data;
return view;
}