aboutsummaryrefslogtreecommitdiffstats
path: root/executive-summary/test-service/main.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2000-12-27 08:03:11 +0800
committerIain Holmes <iain@src.gnome.org>2000-12-27 08:03:11 +0800
commit3e5f3687c7460009c93e876ae0ab7eb0e2a71648 (patch)
treeb5c0e1743e85852038f5ad023616a7f89637e31e /executive-summary/test-service/main.c
parent138e45cc665e70e637652eca1cae64ddf7e3b979 (diff)
downloadgsoc2013-evolution-3e5f3687c7460009c93e876ae0ab7eb0e2a71648.tar.gz
gsoc2013-evolution-3e5f3687c7460009c93e876ae0ab7eb0e2a71648.tar.zst
gsoc2013-evolution-3e5f3687c7460009c93e876ae0ab7eb0e2a71648.zip
More fixes for new bonobo
pt 2 svn path=/trunk/; revision=7178
Diffstat (limited to 'executive-summary/test-service/main.c')
-rw-r--r--executive-summary/test-service/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/executive-summary/test-service/main.c b/executive-summary/test-service/main.c
index 2a3b25975c..d2d35e9c96 100644
--- a/executive-summary/test-service/main.c
+++ b/executive-summary/test-service/main.c
@@ -176,6 +176,7 @@ create_view (ExecutiveSummaryComponentFactory *_factory,
BonoboObject *component, *view;
BonoboPersistStream *stream;
BonoboPropertyBag *bag;
+ BonoboEventSource *event_source;
UserData *ud;
/* Create the component object */
@@ -201,8 +202,12 @@ create_view (ExecutiveSummaryComponentFactory *_factory,
ii) Use bonobo_object_add_interface ().
*/
+ /* Create an event source to share with all the interfaces,
+ as we can only aggregate one onto the ExecutiveSummaryComponent */
+ event_source = bonobo_event_source_new ();
+
/* The Summary::HTMLView interface */
- view = executive_summary_html_view_new ();
+ view = executive_summary_html_view_new_full (event_source);
/* Set the default HTML */
executive_summary_html_view_set_html (EXECUTIVE_SUMMARY_HTML_VIEW (view),
"<B>Hello World</b>");
@@ -210,7 +215,8 @@ create_view (ExecutiveSummaryComponentFactory *_factory,
bonobo_object_add_interface (component, view);
/* Add the Bonobo::PropertyBag interface */
- bag = bonobo_property_bag_new (get_property, set_property, ud);
+ bag = bonobo_property_bag_new_full (get_property, set_property,
+ event_source, ud);
/* Add the properties. There should be 2:
window_title: For the window title.
window_icon: For the window icon.