6 static GObjectClass* view_parent_class;
9 view_object_finalize(GObject* object)
11 View* view = VIEW(object);
13 view_parent_class->finalize(object);
17 impl_view_freeze(PortableServer_Servant servant,
18 CORBA_Environment *ev)
20 View* view = VIEW (bonobo_object (servant));
21 printf("called freeze\n");
25 impl_view_thaw(PortableServer_Servant servant,
26 CORBA_Environment *ev)
28 View* view = VIEW (bonobo_object (servant));
29 printf("called thaw\n");
33 view_class_init(ViewClass* klass)
35 GObjectClass* object_class = (GObjectClass *) klass;
36 POA_GNOME_GtkMathView_View__epv* epv = &klass->epv;
38 view_parent_class = g_type_class_peek_parent (klass);
39 object_class->finalize = view_object_finalize;
41 epv->freeze = impl_view_freeze;
42 epv->thaw = impl_view_thaw;
48 /* do some initialization */
51 BONOBO_TYPE_FUNC_FULL (View, GNOME_GtkMathView_View, BONOBO_TYPE_OBJECT, view)
56 View* view = g_object_new(VIEW_TYPE, NULL);