diff options
-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); |