From 9b7a92e8eacbbb84c2f0114508dd9f2163394809 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 12 Dec 2000 23:29:56 +0000 Subject: Added #include . (destroy_prefs_cb): Added a cast. 2000-12-12 Christopher James Lahey * component/e-summary-callbacks.c: Added #include . (destroy_prefs_cb): Added a cast. (configure_summary): Added a cast. * component/e-summary-callbacks.h: Added #include "e-summary.h" * component/e-summary-url.c (e_summary_url_click): Removed an unused variable. * component/e-summary-util.c: Added #include * component/e-summary.c: Added #include . (e_summary_queue_rebuild): Added a cast. * component/main.c: Added #include . * test-service/main.c: Changed some variable types to make casting easier. * test-service/rdf-summary.c: Changed some variable types to make casting easier. svn path=/trunk/; revision=6953 --- executive-summary/test-service/main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'executive-summary/test-service/main.c') diff --git a/executive-summary/test-service/main.c b/executive-summary/test-service/main.c index 1dcbf20b51..2a3b25975c 100644 --- a/executive-summary/test-service/main.c +++ b/executive-summary/test-service/main.c @@ -173,7 +173,9 @@ static BonoboObject * create_view (ExecutiveSummaryComponentFactory *_factory, void *closure) { - BonoboObject *component, *view, *bag, *stream; + BonoboObject *component, *view; + BonoboPersistStream *stream; + BonoboPropertyBag *bag; UserData *ud; /* Create the component object */ @@ -213,24 +215,24 @@ create_view (ExecutiveSummaryComponentFactory *_factory, window_title: For the window title. window_icon: For the window icon. */ - bonobo_property_bag_add (BONOBO_PROPERTY_BAG (bag), + bonobo_property_bag_add (bag, "window_title", PROPERTY_TITLE, BONOBO_ARG_STRING, NULL, "The title of this components window", 0); - bonobo_property_bag_add (BONOBO_PROPERTY_BAG (bag), + bonobo_property_bag_add (bag, "window_icon", PROPERTY_ICON, BONOBO_ARG_STRING, NULL, "The icon for this component's window", 0); /* Now add the interface */ - bonobo_object_add_interface (component, bag); + bonobo_object_add_interface (component, BONOBO_OBJECT(bag)); /* Add the Bonobo::PersistStream interface */ stream = bonobo_persist_stream_new (load_from_stream, save_to_stream, NULL, content_types, NULL); - bonobo_object_add_interface (component, stream); + bonobo_object_add_interface (component, BONOBO_OBJECT(stream)); running_views++; /* Return the ExecutiveSummaryComponent object */ -- cgit v1.2.3