From 70f4bec5aa51a39208981cfe9c2570738a329f2e Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 3 Jan 2003 17:53:32 +0000 Subject: Fixed some build issues. 2003-01-03 Jeffrey Stedfast * mail-display.c: Fixed some build issues. * mail-search.c: Same. * mail-callbacks.c (save_draft_done): Use g_signal_handlers_disconnect_by_func(). (manage_subscriptions): Use a weak_ref instead of connecting to the destroy event. svn path=/trunk/; revision=19224 --- mail/mail-callbacks.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 4617f70bfe..4b32f5cae5 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -599,10 +599,8 @@ save_draft_done (CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *i ccd = ccd_new (); /* disconnect the previous signal handlers */ - gtk_signal_disconnect_by_func (GTK_OBJECT (sdi->composer), - G_CALLBACK (composer_send_cb), NULL); - gtk_signal_disconnect_by_func (GTK_OBJECT (sdi->composer), - G_CALLBACK (composer_save_draft_cb), NULL); + g_signal_handlers_disconnect_by_func (sdi->composer, G_CALLBACK (composer_send_cb), NULL); + g_signal_handlers_disconnect_by_func (sdi->composer, G_CALLBACK (composer_save_draft_cb), NULL); /* reconnect to the signals using a non-NULL ccd for the callback data */ g_signal_connect (sdi->composer, "send", G_CALLBACK (composer_send_cb), ccd); @@ -3093,7 +3091,7 @@ print_preview_msg (GtkWidget *button, gpointer user_data) static GtkObject *subscribe_dialog = NULL; static void -subscribe_dialog_destroy (GtkWidget *widget, gpointer user_data) +subscribe_dialog_destroy (GtkObject *dialog, GObject *deadbeef) { if (subscribe_dialog) { g_object_unref (subscribe_dialog); @@ -3106,8 +3104,9 @@ manage_subscriptions (BonoboUIComponent *uih, void *user_data, const char *path) { if (!subscribe_dialog) { subscribe_dialog = subscribe_dialog_new (); - g_signal_connect (SUBSCRIBE_DIALOG (subscribe_dialog)->app, "destroy", - G_CALLBACK (subscribe_dialog_destroy), NULL); + + g_object_weak_ref ((GObject *) SUBSCRIBE_DIALOG (subscribe_dialog)->app, + (GWeakNotify) subscribe_dialog_destroy, subscribe_dialog); subscribe_dialog_show (subscribe_dialog); } else { -- cgit v1.2.3