aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-11-08 00:06:38 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-11-08 00:06:38 +0800
commitff4b4e7ed3c2450a7d9d565f7ef1a734f009710e (patch)
tree2f53eab78c4fab1b99b34e60b593c880f2c9b534
parente25263409df8e72ba17f300c8e6f2f4b533c7a1a (diff)
downloadgsoc2013-evolution-ff4b4e7ed3c2450a7d9d565f7ef1a734f009710e.tar
gsoc2013-evolution-ff4b4e7ed3c2450a7d9d565f7ef1a734f009710e.tar.gz
gsoc2013-evolution-ff4b4e7ed3c2450a7d9d565f7ef1a734f009710e.tar.bz2
gsoc2013-evolution-ff4b4e7ed3c2450a7d9d565f7ef1a734f009710e.tar.lz
gsoc2013-evolution-ff4b4e7ed3c2450a7d9d565f7ef1a734f009710e.tar.xz
gsoc2013-evolution-ff4b4e7ed3c2450a7d9d565f7ef1a734f009710e.tar.zst
gsoc2013-evolution-ff4b4e7ed3c2450a7d9d565f7ef1a734f009710e.zip
converted to BonoboObject. (impl_Cal_get_query): bonobo_object_unref the
2002-11-07 Rodrigo Moya <rodrigo@ximian.com> * 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
-rw-r--r--calendar/pcs/query.c11
1 files changed, 7 insertions, 4 deletions
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 <string.h>
#include <glib.h>
+#include <gtk/gtkmain.h>
#include <libgnome/gnome-i18n.h>
#include <bonobo/bonobo-exception.h>
#include <gal/widgets/e-unicode.h>
@@ -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);