From ccdcf468c80b1dd870100c44c084cbd674a86c91 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 26 Oct 2001 04:06:42 +0000 Subject: Desensitize the parent dialog. (rule_edit): Same. (add_editor_clicked): 2001-10-26 Jeffrey Stedfast * rule-editor.c (rule_add): Desensitize the parent dialog. (rule_edit): Same. (add_editor_clicked): Re-sensitize it. (edit_editor_clicked): Same. svn path=/trunk/; revision=14123 --- filter/ChangeLog | 7 +++++++ filter/rule-editor.c | 6 ++++++ 2 files changed, 13 insertions(+) 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 + + * 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 * 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); } -- cgit v1.2.3