From ff4b4e7ed3c2450a7d9d565f7ef1a734f009710e Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 7 Nov 2002 16:06:38 +0000 Subject: converted to BonoboObject. (impl_Cal_get_query): bonobo_object_unref the 2002-11-07 Rodrigo Moya * pcs/cal.[ch]: converted to BonoboObject. (impl_Cal_get_query): bonobo_object_unref the query returned by cal_backend_get_query if we can't duplicate it. * pcs/query.[ch]: * pcs/cal-factory.[ch]: converted to BonoboObject. * pcs/query-backend.[ch]: * pcs/cal-backend-file.[ch]: * pcs/cal-backend.[ch]: GObjectify. svn path=/trunk/; revision=18631 --- calendar/pcs/query.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'calendar/pcs') diff --git a/calendar/pcs/query.c b/calendar/pcs/query.c index da80b7b141..4e077245ce 100644 --- a/calendar/pcs/query.c +++ b/calendar/pcs/query.c @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -185,7 +186,9 @@ query_finalize (GObject *object) */ if (priv->state == QUERY_WAIT_FOR_BACKEND || priv->state == QUERY_IN_PROGRESS || priv->state == QUERY_DONE) - gtk_signal_disconnect_by_data (GTK_OBJECT (priv->backend), query); + g_signal_handlers_disconnect_matched (G_OBJECT (priv->backend), + G_SIGNAL_MATCH_DATA, + 0, 0, NULL, NULL, query); g_object_unref (priv->backend); priv->backend = NULL; @@ -1581,7 +1584,7 @@ backend_opened_cb (CalBackend *backend, CalBackendOpenStatus status, gpointer da /* Callback used when the backend for a cached query is destroyed */ static void -backend_destroyed_cb (GtkObject *object, gpointer data) +backend_destroyed_cb (GObject *object, gpointer data) { Query *query; @@ -1636,8 +1639,8 @@ query_construct (Query *query, cl = e_component_listener_new (ql, 0); priv->component_listeners = g_list_append (priv->component_listeners, cl); - gtk_signal_connect (GTK_OBJECT (cl), "component_died", - GTK_SIGNAL_FUNC (listener_died_cb), query); + g_signal_connect (G_OBJECT (cl), "component_died", + G_CALLBACK (listener_died_cb), query); priv->backend = backend; g_object_ref (priv->backend); -- cgit v1.2.3