aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2000-12-27 07:42:43 +0800
committerIain Holmes <iain@src.gnome.org>2000-12-27 07:42:43 +0800
commit138e45cc665e70e637652eca1cae64ddf7e3b979 (patch)
treeae8edd258b5b9ebc9d634d917c6e133b6a545a72
parentc1527a0f74533dd131576fcfc7b23188ff1466ba (diff)
downloadgsoc2013-evolution-138e45cc665e70e637652eca1cae64ddf7e3b979.tar
gsoc2013-evolution-138e45cc665e70e637652eca1cae64ddf7e3b979.tar.gz
gsoc2013-evolution-138e45cc665e70e637652eca1cae64ddf7e3b979.tar.bz2
gsoc2013-evolution-138e45cc665e70e637652eca1cae64ddf7e3b979.tar.lz
gsoc2013-evolution-138e45cc665e70e637652eca1cae64ddf7e3b979.tar.xz
gsoc2013-evolution-138e45cc665e70e637652eca1cae64ddf7e3b979.tar.zst
gsoc2013-evolution-138e45cc665e70e637652eca1cae64ddf7e3b979.zip
New BonoboPropertyEventless stuff
pt 1 svn path=/trunk/; revision=7177
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/calendar-summary.c8
-rw-r--r--mail/mail-summary.c8
3 files changed, 17 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 6861c3d698..9aa2728798 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-26 Iain Holmes <iain@helixcode.com>
+
+ * gui/calendar-summary.c (create_summary_view): Create a shared
+ BonoboEventSource object.
+
2000-12-25 Miguel de Icaza <miguel@helixcode.com>
* gui/e-day-view.c (e_day_view_init): Set draw background to FALSE.
diff --git a/calendar/gui/calendar-summary.c b/calendar/gui/calendar-summary.c
index 3544fbbc38..2def2f6fea 100644
--- a/calendar/gui/calendar-summary.c
+++ b/calendar/gui/calendar-summary.c
@@ -247,6 +247,7 @@ create_summary_view (ExecutiveSummaryComponentFactory *_factory,
BonoboObject *component, *view;
BonoboPersistStream *stream;
BonoboPropertyBag *bag;
+ BonoboEventSource *event_source;
CalSummary *summary;
char *html, *file;
@@ -282,8 +283,10 @@ create_summary_view (ExecutiveSummaryComponentFactory *_factory,
gtk_signal_connect (GTK_OBJECT (component), "destroy",
GTK_SIGNAL_FUNC (component_destroyed), summary);
+ event_source = bonobo_event_source_new ();
+
/* HTML view */
- view = executive_summary_html_view_new ();
+ view = executive_summary_html_view_new_full (event_source);
summary->view = view;
executive_summary_html_view_set_html (EXECUTIVE_SUMMARY_HTML_VIEW (view),
@@ -291,7 +294,8 @@ create_summary_view (ExecutiveSummaryComponentFactory *_factory,
bonobo_object_add_interface (component, view);
/* BonoboPropertyBag */
- bag = bonobo_property_bag_new (get_property, NULL, summary);
+ bag = bonobo_property_bag_new_full (get_property, NULL,
+ event_source, summary);
bonobo_property_bag_add (bag, "window_title", PROPERTY_TITLE,
BONOBO_ARG_STRING, NULL,
"The title of this component's window", 0);
diff --git a/mail/mail-summary.c b/mail/mail-summary.c
index 89497bccc3..2dd99fd964 100644
--- a/mail/mail-summary.c
+++ b/mail/mail-summary.c
@@ -438,6 +438,7 @@ create_summary_view (ExecutiveSummaryComponentFactory *_factory,
CORBA_Environment ev;
BonoboObject *component, *view;
BonoboPropertyBag *bag;
+ BonoboEventSource *event_source;
char *html;
MailSummary *summary;
@@ -456,7 +457,9 @@ create_summary_view (ExecutiveSummaryComponentFactory *_factory,
component = executive_summary_component_new ();
summary->component = component;
- view = executive_summary_html_view_new ();
+ event_source = bonobo_event_source_new ();
+
+ view = executive_summary_html_view_new_full (event_source);
executive_summary_html_view_set_html (EXECUTIVE_SUMMARY_HTML_VIEW (view),
html);
bonobo_object_add_interface (component, view);
@@ -464,7 +467,8 @@ create_summary_view (ExecutiveSummaryComponentFactory *_factory,
gtk_signal_connect (GTK_OBJECT (view), "destroy",
GTK_SIGNAL_FUNC (view_destroy_cb), summary);
- bag = bonobo_property_bag_new (get_property, NULL, summary);
+ bag = bonobo_property_bag_new_full (get_property, NULL,
+ event_source, summary);
bonobo_property_bag_add (bag,
"window_title", PROPERTY_TITLE,
BONOBO_ARG_STRING, NULL,