aboutsummaryrefslogtreecommitdiffstats
path: root/executive-summary/evolution-services/executive-summary-component.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2000-12-08 08:00:15 +0800
committerIain Holmes <iain@src.gnome.org>2000-12-08 08:00:15 +0800
commit4a74b1ff15ca5cbc175c8fb98839960f1af494fb (patch)
treeed80ade2d481f5a265c0d9a475be689ace09c8df /executive-summary/evolution-services/executive-summary-component.c
parentadf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1 (diff)
downloadgsoc2013-evolution-4a74b1ff15ca5cbc175c8fb98839960f1af494fb.tar
gsoc2013-evolution-4a74b1ff15ca5cbc175c8fb98839960f1af494fb.tar.gz
gsoc2013-evolution-4a74b1ff15ca5cbc175c8fb98839960f1af494fb.tar.bz2
gsoc2013-evolution-4a74b1ff15ca5cbc175c8fb98839960f1af494fb.tar.lz
gsoc2013-evolution-4a74b1ff15ca5cbc175c8fb98839960f1af494fb.tar.xz
gsoc2013-evolution-4a74b1ff15ca5cbc175c8fb98839960f1af494fb.tar.zst
gsoc2013-evolution-4a74b1ff15ca5cbc175c8fb98839960f1af494fb.zip
New and improved display,
Bug fixes memory leaks removed Preferences and probably more that I can't remember. svn path=/trunk/; revision=6858
Diffstat (limited to 'executive-summary/evolution-services/executive-summary-component.c')
-rw-r--r--executive-summary/evolution-services/executive-summary-component.c107
1 files changed, 4 insertions, 103 deletions
diff --git a/executive-summary/evolution-services/executive-summary-component.c b/executive-summary/evolution-services/executive-summary-component.c
index 609b31939b..5339defc6b 100644
--- a/executive-summary/evolution-services/executive-summary-component.c
+++ b/executive-summary/evolution-services/executive-summary-component.c
@@ -45,9 +45,6 @@ static BonoboObjectClass *factory_parent_class;
struct _ExecutiveSummaryComponentPrivate {
int dummy;
-#if 0
- ExecutiveSummaryClient *owner_client;
-#endif
};
struct _ExecutiveSummaryComponentFactoryPrivate {
@@ -82,54 +79,6 @@ create_servant (void)
}
static void
-impl_GNOME_Evolution_Summary_Component_set_owner (PortableServer_Servant servant,
- GNOME_Evolution_Summary_ViewFrame summary,
- CORBA_Environment *ev)
-{
-#if 0
-
- BonoboObject *bonobo_object;
- ExecutiveSummaryComponent *component;
- ExecutiveSummaryComponentPrivate *priv;
- ExecutiveSummaryClient *client;
- GNOME_Evolution_Summary_ViewFrame summary_duplicate;
-
- bonobo_object = bonobo_object_from_servant (servant);
- component = EXECUTIVE_SUMMARY_COMPONENT (bonobo_object);
- priv = component->private;
-
- /* Create a summary client */
- client = gtk_type_new (executive_summary_client_get_type ());
-
- summary_duplicate = CORBA_Object_duplicate (summary, ev);
- executive_summary_client_construct (client, summary_duplicate);
-
- priv->owner_client = client;
-#endif
-}
-
-static void
-impl_GNOME_Evolution_Summary_Component_unset_owner (PortableServer_Servant servant,
- CORBA_Environment *ev)
-{
-#if 0
- BonoboObject *bonobo_object;
- ExecutiveSummaryComponent *component;
- ExecutiveSummaryComponentPrivate *priv;
-
- bonobo_object = bonobo_object_from_servant (servant);
- component = EXECUTIVE_SUMMARY_COMPONENT (bonobo_object);
- priv = component->private;
-
- if (priv->owner_client == NULL)
- return;
-
- bonobo_object_unref (BONOBO_OBJECT (priv->owner_client));
- priv->owner_client = NULL;
-#endif
-}
-
-static void
executive_summary_component_destroy (GtkObject *object)
{
ExecutiveSummaryComponent *component;
@@ -173,8 +122,6 @@ corba_class_init (void)
base_epv->default_POA = NULL;
epv = g_new0 (POA_GNOME_Evolution_Summary_Component__epv, 1);
- epv->setOwner = impl_GNOME_Evolution_Summary_Component_set_owner;
- epv->unsetOwner = impl_GNOME_Evolution_Summary_Component_unset_owner;
vepv = &SummaryComponent_vepv;
vepv->_base_epv = base_epv;
@@ -249,54 +196,6 @@ executive_summary_component_new (void)
return BONOBO_OBJECT (component);
}
-#if 0
-void
-executive_summary_component_flash (ExecutiveSummaryComponent *component,
- gpointer view)
-{
- ExecutiveSummaryComponentPrivate *priv;
- int id;
-
- g_return_if_fail (component != NULL);
- g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT (component));
-
- priv = component->private;
-
- if (priv->owner_client == NULL) {
- g_warning ("Component not owned!");
- return;
- }
-
- id = executive_summary_component_view_get_id (EXECUTIVE_SUMMARY_COMPONENT_VIEW (view));
-
- executive_summary_client_flash (priv->owner_client, id);
-}
-
-void
-executive_summary_component_update (ExecutiveSummaryComponent *component,
- gpointer view)
-{
- ExecutiveSummaryComponentPrivate *priv;
- int id;
- const char *html;
-
- g_return_if_fail (component != NULL);
- g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT (component));
-
- priv = component->private;
-
- if (priv->owner_client == NULL) {
- g_warning ("Component not ownded!");
- return;
- }
-
- id = executive_summary_component_view_get_id (EXECUTIVE_SUMMARY_COMPONENT_VIEW (view));
- html = executive_summary_component_view_get_html (EXECUTIVE_SUMMARY_COMPONENT_VIEW (view));
-
- executive_summary_client_update (priv->owner_client, id, html);
-}
-#endif
-
/**** ComponentFactory implementation ****/
@@ -337,13 +236,15 @@ impl_GNOME_Evolution_Summary_ComponentFactory_createView (PortableServer_Servant
factory = EXECUTIVE_SUMMARY_COMPONENT_FACTORY (bonobo_object);
priv = factory->private;
- g_warning ("Hello?");
view = (* priv->create_view) (factory, priv->closure);
g_return_val_if_fail (view != NULL, CORBA_OBJECT_NIL);
component = bonobo_object_corba_objref (BONOBO_OBJECT (view));
+ CORBA_exception_init (&ev2);
+ component_dup = CORBA_Object_duplicate (component, &ev2);
+ CORBA_exception_free (&ev2);
- return component;
+ return component_dup;
}
static void