diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-12-13 07:29:56 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-12-13 07:29:56 +0800 |
commit | 9b7a92e8eacbbb84c2f0114508dd9f2163394809 (patch) | |
tree | 5e49153b821763c8d0bec4dfc0c08302b2852f02 | |
parent | 55940a77adb50fb42920cecc29d8c28501084209 (diff) | |
download | gsoc2013-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
-rw-r--r-- | executive-summary/ChangeLog | 29 | ||||
-rw-r--r-- | executive-summary/component/e-summary-callbacks.c | 5 | ||||
-rw-r--r-- | executive-summary/component/e-summary-callbacks.h | 2 | ||||
-rw-r--r-- | executive-summary/component/e-summary-url.c | 2 | ||||
-rw-r--r-- | executive-summary/component/e-summary-util.c | 2 | ||||
-rw-r--r-- | executive-summary/component/e-summary.c | 3 | ||||
-rw-r--r-- | executive-summary/component/main.c | 1 | ||||
-rw-r--r-- | executive-summary/test-service/main.c | 12 | ||||
-rw-r--r-- | executive-summary/test-service/rdf-summary.c | 35 |
9 files changed, 63 insertions, 28 deletions
diff --git a/executive-summary/ChangeLog b/executive-summary/ChangeLog index 76009eb9e0..d93f03aef0 100644 --- a/executive-summary/ChangeLog +++ b/executive-summary/ChangeLog @@ -1,3 +1,28 @@ +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. + 2000-12-12 Dan Winship <danw@helixcode.com> * Makefile.am (EXTRA_DIST): Add stuff. (From campd.) @@ -5,8 +30,8 @@ 2000-12-11 Iain Holmes <iain@helixcode.com> * evolution-services/executive-summary-html-view.h: Add a define - for the "html_changed" signal to name space it. Change the function - declarations to fit with the below change too. + for the "html_changed" signal to name space it. Change the + function declarations to fit with the below change too. * evolution-services/executive-summary-html-view.c (executive_summary_html_view_new): Create a default BonoboEventSource diff --git a/executive-summary/component/e-summary-callbacks.c b/executive-summary/component/e-summary-callbacks.c index 03ea56805c..09072990d5 100644 --- a/executive-summary/component/e-summary-callbacks.c +++ b/executive-summary/component/e-summary-callbacks.c @@ -31,6 +31,7 @@ #include <liboaf/liboaf.h> #include <glade/glade.h> +#include <e-summary-callbacks.h> #include "e-summary.h" @@ -128,7 +129,7 @@ static void destroy_prefs_cb (GtkObject *object, PropertyData *data) { - gtk_object_unref (data->xml); + gtk_object_unref (GTK_OBJECT(data->xml)); g_free (data); } @@ -191,7 +192,7 @@ configure_summary (GtkWidget *widget, data->xml = glade_xml_new (EVOLUTION_GLADEDIR "/executive-summary-config.glade", NULL); prefs = glade_xml_get_widget (data->xml, "summaryprefs"); - data->box = prefs; + data->box = GNOME_PROPERTY_BOX(prefs); html_page = glade_xml_get_widget (data->xml, "htmlpage"); if (esummary->prefs->page != NULL) diff --git a/executive-summary/component/e-summary-callbacks.h b/executive-summary/component/e-summary-callbacks.h index 3d42adca26..6b908d694c 100644 --- a/executive-summary/component/e-summary-callbacks.h +++ b/executive-summary/component/e-summary-callbacks.h @@ -1,6 +1,8 @@ #ifndef __E_SUMMARY_CALLBACKS_H__ #define __E_SUMMARY_CALLBACKS_H__ +#include "e-summary.h" + void embed_service (GtkWidget *widget, ESummary *esummary); void new_mail (GtkWidget *widget, diff --git a/executive-summary/component/e-summary-url.c b/executive-summary/component/e-summary-url.c index ae218cf7c8..c3be19ab78 100644 --- a/executive-summary/component/e-summary-url.c +++ b/executive-summary/component/e-summary-url.c @@ -462,8 +462,6 @@ e_summary_url_click (GtkWidget *widget, num_pages = Bonobo_PropertyControl__get_pageCount (window->propertycontrol, &ev); for (i = 0; i < num_pages; i++) { - char *pagename; - control = Bonobo_PropertyControl_getControl (window->propertycontrol, i, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_warning ("Unable to get property control."); diff --git a/executive-summary/component/e-summary-util.c b/executive-summary/component/e-summary-util.c index 52f4994185..78731a6b3e 100644 --- a/executive-summary/component/e-summary-util.c +++ b/executive-summary/component/e-summary-util.c @@ -21,6 +21,8 @@ * Boston, MA 02111-1307, USA. */ +#include <e-summary-util.h> + #include <gnome.h> char * diff --git a/executive-summary/component/e-summary.c b/executive-summary/component/e-summary.c index 3454e37f83..f2281e4b06 100644 --- a/executive-summary/component/e-summary.c +++ b/executive-summary/component/e-summary.c @@ -32,6 +32,7 @@ #include <gtkhtml/gtkhtml-embedded.h> #include <gtkhtml/gtkhtml-stream.h> #include <gtkhtml/htmlengine.h> +#include <gtkhtml/htmlselection.h> #include <gal/util/e-util.h> #include <gal/widgets/e-gui-utils.h> @@ -617,7 +618,7 @@ e_summary_queue_rebuild (ESummary *esummary) if (priv->idle != 0) return; - priv->idle = g_idle_add (e_summary_rebuild_page, esummary); + priv->idle = g_idle_add ((GSourceFunc) e_summary_rebuild_page, esummary); } static void diff --git a/executive-summary/component/main.c b/executive-summary/component/main.c index 0c36a9866e..3e29b5f337 100644 --- a/executive-summary/component/main.c +++ b/executive-summary/component/main.c @@ -27,6 +27,7 @@ #include <bonobo/bonobo-main.h> #include <bonobo/bonobo-object-directory.h> #include <liboaf/liboaf.h> +#include <glade/glade.h> #ifdef GTKHTML_HAVE_GCONF #include <gconf/gconf.h> 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 |