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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
8a3ac3341a
commit
977c6e8ee8
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user