aboutsummaryrefslogtreecommitdiffstats
path: root/executive-summary/test-service
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-13 07:29:56 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-13 07:29:56 +0800
commit9b7a92e8eacbbb84c2f0114508dd9f2163394809 (patch)
tree5e49153b821763c8d0bec4dfc0c08302b2852f02 /executive-summary/test-service
parent55940a77adb50fb42920cecc29d8c28501084209 (diff)
downloadgsoc2013-evolution-9b7a92e8eacbbb84c2f0114508dd9f2163394809.tar.gz
gsoc2013-evolution-9b7a92e8eacbbb84c2f0114508dd9f2163394809.tar.zst
gsoc2013-evolution-9b7a92e8eacbbb84c2f0114508dd9f2163394809.zip
Added #include <e-summary-callbacks.h>. (destroy_prefs_cb): Added a cast.
2000-12-12 Christopher James Lahey <clahey@helixcode.com> * component/e-summary-callbacks.c: Added #include <e-summary-callbacks.h>. (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 <e-summary-util.h> * component/e-summary.c: Added #include <gtkhtml/htmlselection.h>. (e_summary_queue_rebuild): Added a cast. * component/main.c: Added #include <glade/glade.h>. * 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
Diffstat (limited to 'executive-summary/test-service')
-rw-r--r--executive-summary/test-service/main.c12
-rw-r--r--executive-summary/test-service/rdf-summary.c35
2 files changed, 26 insertions, 21 deletions
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 */
diff --git a/executive-summary/test-service/rdf-summary.c b/executive-summary/test-service/rdf-summary.c
index 48b4b8ece0..a2a01aa541 100644
--- a/executive-summary/test-service/rdf-summary.c
+++ b/executive-summary/test-service/rdf-summary.c
@@ -40,8 +40,8 @@ enum {
struct _RdfSummary {
BonoboObject *component;
BonoboObject *view;
- BonoboObject *bag;
- BonoboObject *property_control;
+ BonoboPropertyBag *bag;
+ BonoboPropertyControl *property_control;
GtkWidget *rdf;
GtkWidget *g_limit;
@@ -194,7 +194,7 @@ tree_walk (xmlNodePtr root,
arg = bonobo_arg_new (BONOBO_ARG_STRING);
BONOBO_ARG_SET_STRING (arg, t);
- bonobo_property_bag_set_value (BONOBO_PROPERTY_BAG (summary->bag),
+ bonobo_property_bag_set_value (summary->bag,
"window_title", (const BonoboArg *) arg,
NULL);
bonobo_arg_release (arg);
@@ -212,7 +212,7 @@ tree_walk (xmlNodePtr root,
icon = layer_find_url (image->childs, "url", "apple-red.png");
arg = bonobo_arg_new (BONOBO_ARG_STRING);
BONOBO_ARG_SET_STRING (arg, icon);
- bonobo_property_bag_set_value (BONOBO_PROPERTY_BAG (summary->bag),
+ bonobo_property_bag_set_value (summary->bag,
"window_icon",
(const BonoboArg *) arg, NULL);
bonobo_arg_release (arg);
@@ -417,7 +417,7 @@ static void
entry_changed (GtkEntry *entry,
RdfSummary *summary)
{
- bonobo_property_control_changed (BONOBO_PROPERTY_CONTROL (summary->property_control), NULL);
+ bonobo_property_control_changed (summary->property_control, NULL);
}
static BonoboControl *
@@ -481,7 +481,7 @@ property_action (GtkObject *property_control,
g_free (summary->location);
summary->location = g_strdup (gtk_entry_get_text (GTK_ENTRY (summary->rdf)));
summary->limit = atoi (gtk_entry_get_text (GTK_ENTRY (summary->g_limit)));
- g_idle_add (download, summary);
+ g_idle_add ((GSourceFunc) download, summary);
break;
case Bonobo_PropertyControl_HELP:
@@ -498,7 +498,10 @@ create_view (ExecutiveSummaryComponentFactory *_factory,
void *closure)
{
RdfSummary *summary;
- BonoboObject *component, *view, *bag, *property, *event_source;
+ BonoboObject *component, *view;
+ BonoboEventSource *event_source;
+ BonoboPropertyBag *bag;
+ BonoboPropertyControl *property;
char *html = "<b>Loading RDF file. . .<br>Please wait</b>";
summary = g_new (RdfSummary, 1);
@@ -518,7 +521,7 @@ create_view (ExecutiveSummaryComponentFactory *_factory,
interface aggregated */
event_source = bonobo_event_source_new ();
- view = executive_summary_html_view_new_full (BONOBO_EVENT_SOURCE (event_source));
+ view = executive_summary_html_view_new_full (event_source);
summary->view = view;
executive_summary_html_view_set_html (EXECUTIVE_SUMMARY_HTML_VIEW (view),
html);
@@ -526,28 +529,28 @@ create_view (ExecutiveSummaryComponentFactory *_factory,
bag = bonobo_property_bag_new (get_prop, set_prop, summary);
summary->bag = bag;
- 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 component's 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);
- bonobo_object_add_interface (component, bag);
+ bonobo_object_add_interface (component, BONOBO_OBJECT(bag));
property = bonobo_property_control_new_full (property_control, 1,
- BONOBO_EVENT_SOURCE (event_source),
+ event_source,
summary);
summary->property_control = property;
gtk_signal_connect (GTK_OBJECT (property), "action",
GTK_SIGNAL_FUNC (property_action), summary);
- bonobo_object_add_interface (component, property);
+ bonobo_object_add_interface (component, BONOBO_OBJECT(property));
running_views++;
- gtk_timeout_add (5000, download, summary);
+ gtk_timeout_add (5000, (GSourceFunc) download, summary);
return component;
}
@@ -556,10 +559,10 @@ static BonoboObject *
factory_fn (BonoboGenericFactory *_factory,
void *closure)
{
- ExecutiveSummaryComponentFactory *component_factory;
+ BonoboObject *component_factory;
component_factory = executive_summary_component_factory_new (create_view, NULL);
- return BONOBO_OBJECT (component_factory);
+ return component_factory;
}
static void