diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-26 12:06:42 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-26 12:06:42 +0800 |
commit | ccdcf468c80b1dd870100c44c084cbd674a86c91 (patch) | |
tree | eaa2c342df42ed8fe4e8a3d7d55c75f8e39e0f51 | |
parent | 7c6257f9a9e271c539f387ee25d0e8d9275914db (diff) | |
download | gsoc2013-evolution-ccdcf468c80b1dd870100c44c084cbd674a86c91.tar gsoc2013-evolution-ccdcf468c80b1dd870100c44c084cbd674a86c91.tar.gz gsoc2013-evolution-ccdcf468c80b1dd870100c44c084cbd674a86c91.tar.bz2 gsoc2013-evolution-ccdcf468c80b1dd870100c44c084cbd674a86c91.tar.lz gsoc2013-evolution-ccdcf468c80b1dd870100c44c084cbd674a86c91.tar.xz gsoc2013-evolution-ccdcf468c80b1dd870100c44c084cbd674a86c91.tar.zst gsoc2013-evolution-ccdcf468c80b1dd870100c44c084cbd674a86c91.zip |
Desensitize the parent dialog. (rule_edit): Same. (add_editor_clicked):
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.
svn path=/trunk/; revision=14123
-rw-r--r-- | filter/ChangeLog | 7 | ||||
-rw-r--r-- | filter/rule-editor.c | 6 |
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); } |