diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-01-04 01:53:32 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-01-04 01:53:32 +0800 |
commit | 70f4bec5aa51a39208981cfe9c2570738a329f2e (patch) | |
tree | 80202c2c6802a2b441922d55423712f598c78112 /mail/mail-callbacks.c | |
parent | 0717b2f938195b8c9ec0b303433060c32a829666 (diff) | |
download | gsoc2013-evolution-70f4bec5aa51a39208981cfe9c2570738a329f2e.tar.gz gsoc2013-evolution-70f4bec5aa51a39208981cfe9c2570738a329f2e.tar.zst gsoc2013-evolution-70f4bec5aa51a39208981cfe9c2570738a329f2e.zip |
Fixed some build issues.
2003-01-03 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 13 |
1 files changed, 6 insertions, 7 deletions
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 { |