diff options
author | Milan Crha <mcrha@redhat.com> | 2010-10-07 01:26:08 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-10-07 01:26:08 +0800 |
commit | 1c6f2d154e74f908e2c4a137de0233b5faf4f6b6 (patch) | |
tree | 77a33236e48ed59a7c7c65e8a1c91481dd09f3eb /mail/mail-mt.c | |
parent | 1b2fefb086c3e34089beb8b89b22d79005cc7725 (diff) | |
download | gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.tar.gz gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.tar.zst gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.zip |
Bug #631320 - GtkObject is gone in GTK3
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r-- | mail/mail-mt.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 5a32e155fb..cbf836aa06 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -227,14 +227,16 @@ mail_msg_unref (gpointer msg) /* hash table of ops->dialogue of active errors */ static GHashTable *active_errors = NULL; -static void error_destroy (GtkObject *o, gpointer data) +static void +error_finalized (gpointer data, GObject *gone_gd) { g_hash_table_remove (active_errors, data); } -static void error_response (GtkObject *o, gint button, gpointer data) +static void +error_response (GtkWidget *dialog, gint button, gpointer data) { - gtk_widget_destroy ((GtkWidget *)o); + gtk_widget_destroy (dialog); } void @@ -284,7 +286,7 @@ mail_msg_check_error (gpointer msg) g_hash_table_insert (active_errors, m->info, gd); g_signal_connect(gd, "response", G_CALLBACK(error_response), m->info); - g_signal_connect(gd, "destroy", G_CALLBACK(error_destroy), m->info); + g_object_weak_ref (G_OBJECT (gd), error_finalized, m->info); if (m->priv->cancelable) m->priv->error = (GtkWidget *) gd; else |