diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-09 07:51:26 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-09 07:51:26 +0800 |
commit | 977c6e8ee8f337fb273d5fafaa5dc3dc217d6321 (patch) | |
tree | 25415eea79f16a6a52388486e56d1de98220f552 | |
parent | 8a3ac3341af3a86781a46fc7648c110678175665 (diff) | |
download | gsoc2013-evolution-977c6e8ee8f337fb273d5fafaa5dc3dc217d6321.tar.gz gsoc2013-evolution-977c6e8ee8f337fb273d5fafaa5dc3dc217d6321.tar.zst gsoc2013-evolution-977c6e8ee8f337fb273d5fafaa5dc3dc217d6321.zip |
Use weak_ref instead of connecting to "destroy". (rule_add): Same.
2002-11-08 Jeffrey Stedfast <fejj@ximian.com>
* rule-editor.c (rule_edit): Use weak_ref instead of connecting to
"destroy".
(rule_add): Same.
svn path=/trunk/; revision=18679
-rw-r--r-- | filter/ChangeLog | 6 | ||||
-rw-r--r-- | filter/rule-editor.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index b8d74956ab..9571bfb928 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,9 @@ +2002-11-08 Jeffrey Stedfast <fejj@ximian.com> + + * rule-editor.c (rule_edit): Use weak_ref instead of connecting to + "destroy". + (rule_add): Same. + 2002-11-07 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (validate): Use a GtkDialog instead of a diff --git a/filter/rule-editor.c b/filter/rule-editor.c index d2298fca82..a31246bb75 100644 --- a/filter/rule-editor.c +++ b/filter/rule-editor.c @@ -208,7 +208,7 @@ create_rule (RuleEditor *re) } static void -editor_destroy (GtkWidget *dialog, RuleEditor *re) +editor_destroy (RuleEditor *re, GObject *deadbeef) { if (re->edit) { g_object_unref (re->edit); @@ -291,7 +291,7 @@ rule_add (GtkWidget *widget, RuleEditor *re) gtk_box_pack_start (GTK_BOX (GTK_DIALOG (re->dialog)->vbox), rules, TRUE, TRUE, 0); g_signal_connect (re->dialog, "response", GTK_SIGNAL_FUNC (add_editor_response), re); - g_signal_connect (re->dialog, "destroy", GTK_SIGNAL_FUNC (editor_destroy), re); + g_object_weak_ref (re->dialog, (GWeakNotify) editor_destroy, re); gtk_widget_set_sensitive (GTK_WIDGET (re), FALSE); @@ -363,7 +363,7 @@ rule_edit (GtkWidget *widget, RuleEditor *re) gtk_box_pack_start (GTK_BOX (GTK_DIALOG (re->dialog)->vbox), rules, TRUE, TRUE, 0); g_signal_connect (re->dialog, "clicked", GTK_SIGNAL_FUNC (edit_editor_response), re); - g_signal_connect (re->dialog, "destroy", GTK_SIGNAL_FUNC (editor_destroy), re); + g_object_weak_ref (re->dialog, (GWeakNotify) editor_destroy, re); gtk_widget_set_sensitive (GTK_WIDGET (re), FALSE); |