aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client/cal-listener.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-08-08 08:22:07 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-08-08 08:22:07 +0800
commit26cbf6cd5fb66c8c490bbb4d148b811139ec9210 (patch)
treec11413db3b101217b90b396023ab9852024bef65 /calendar/cal-client/cal-listener.h
parentff41087ad40d0527b53cd0815419978a3df5995c (diff)
downloadgsoc2013-evolution-26cbf6cd5fb66c8c490bbb4d148b811139ec9210.tar
gsoc2013-evolution-26cbf6cd5fb66c8c490bbb4d148b811139ec9210.tar.gz
gsoc2013-evolution-26cbf6cd5fb66c8c490bbb4d148b811139ec9210.tar.bz2
gsoc2013-evolution-26cbf6cd5fb66c8c490bbb4d148b811139ec9210.tar.lz
gsoc2013-evolution-26cbf6cd5fb66c8c490bbb4d148b811139ec9210.tar.xz
gsoc2013-evolution-26cbf6cd5fb66c8c490bbb4d148b811139ec9210.tar.zst
gsoc2013-evolution-26cbf6cd5fb66c8c490bbb4d148b811139ec9210.zip
New function to stop further notification from happening.
2001-08-07 Federico Mena Quintero <federico@ximian.com> * cal-client/cal-listener.c (cal_listener_stop_notification): New function to stop further notification from happening. (impl_notifyCalOpened): Do not notify if requested. (impl_notifyObjUpdated): Likewise. (impl_notifyObjRemoved): Likewise. (impl_notifyCategoriesChanged): Likewise. (CalListenerPrivate): Do not keep a reference to the server-side Cal. This would create a circular reference since the server keeps a reference to the listener. (cal_listener_destroy): Likewise. (impl_notifyCalOpened): Likewise. * pcs/cal.c (cal_destroy): bonobo_object_release_unref() the listener. * cal-client/cal-client.c (cal_client_destroy): Ask the listener to stop notifications. Also, do not unref it as the server does that itself when we unref the Cal. svn path=/trunk/; revision=11758
Diffstat (limited to 'calendar/cal-client/cal-listener.h')
-rw-r--r--calendar/cal-client/cal-listener.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/cal-client/cal-listener.h b/calendar/cal-client/cal-listener.h
index 4cbbd8b8c9..87a4f892fe 100644
--- a/calendar/cal-client/cal-listener.h
+++ b/calendar/cal-client/cal-listener.h
@@ -85,6 +85,8 @@ CalListener *cal_listener_new (CalListenerCalOpenedFn cal_opened_fn,
CalListenerCategoriesChangedFn categories_changed_fn,
gpointer fn_data);
+void cal_listener_stop_notification (CalListener *listener);
+
END_GNOME_DECLS