aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/rule-editor.c6
2 files changed, 13 insertions, 0 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index bdcdb93e95..de6800abae 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,10 @@
+2001-10-26 Jeffrey Stedfast <fejj@ximian.com>
+
+ * rule-editor.c (rule_add): Desensitize the parent dialog.
+ (rule_edit): Same.
+ (add_editor_clicked): Re-sensitize it.
+ (edit_editor_clicked): Same.
+
2001-10-25 Jeffrey Stedfast <fejj@ximian.com>
* rule-editor.c: Keep track of the current editor dialog window so
diff --git a/filter/rule-editor.c b/filter/rule-editor.c
index ecaa044f79..83ed725568 100644
--- a/filter/rule-editor.c
+++ b/filter/rule-editor.c
@@ -237,6 +237,7 @@ add_editor_clicked (GtkWidget *dialog, int button, RuleEditor *re)
re->dialog = NULL;
+ gtk_widget_set_sensitive (GTK_WIDGET (re), TRUE);
rule_editor_set_sensitive (re);
}
}
@@ -264,6 +265,8 @@ rule_add (GtkWidget *widget, RuleEditor *re)
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (re->dialog)->vbox), rules, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (re->dialog), "clicked", add_editor_clicked, re);
+ gtk_widget_set_sensitive (GTK_WIDGET (re), FALSE);
+
gtk_widget_show (re->dialog);
}
@@ -300,6 +303,7 @@ edit_editor_clicked (GtkWidget *dialog, int button, RuleEditor *re)
re->dialog = NULL;
+ gtk_widget_set_sensitive (GTK_WIDGET (re), TRUE);
rule_editor_set_sensitive (re);
}
}
@@ -326,6 +330,8 @@ rule_edit (GtkWidget *widget, RuleEditor *re)
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (re->dialog)->vbox), rules, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (re->dialog), "clicked", edit_editor_clicked, re);
+ gtk_widget_set_sensitive (GTK_WIDGET (re), FALSE);
+
gtk_widget_show (re->dialog);
}