aboutsummaryrefslogtreecommitdiffstats
path: root/filter/rule-editor.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-03-18 03:53:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-03-18 03:53:56 +0800
commit32f1cfd13fe2d745cc18b71e32c2c19305c480f7 (patch)
treee668ac1fd5a1bd28bd034a55c0f3864eea3ea056 /filter/rule-editor.c
parentfa49e3e67306a194aebb24554c122252f959eb74 (diff)
downloadgsoc2013-evolution-32f1cfd13fe2d745cc18b71e32c2c19305c480f7.tar
gsoc2013-evolution-32f1cfd13fe2d745cc18b71e32c2c19305c480f7.tar.gz
gsoc2013-evolution-32f1cfd13fe2d745cc18b71e32c2c19305c480f7.tar.bz2
gsoc2013-evolution-32f1cfd13fe2d745cc18b71e32c2c19305c480f7.tar.lz
gsoc2013-evolution-32f1cfd13fe2d745cc18b71e32c2c19305c480f7.tar.xz
gsoc2013-evolution-32f1cfd13fe2d745cc18b71e32c2c19305c480f7.tar.zst
gsoc2013-evolution-32f1cfd13fe2d745cc18b71e32c2c19305c480f7.zip
Always add a Cancel button here, but if !enable_undo - make the response
2003-03-17 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_editor_construct): Always add a Cancel button here, but if !enable_undo - make the response id GTK_RESPONSE_CANCEL rather than GTK_RESPONSE_REJECT (which does undo). This mimics the behaviour that was done in the mail/ code previously. Fixes bug #39809. svn path=/trunk/; revision=20315
Diffstat (limited to 'filter/rule-editor.c')
-rw-r--r--filter/rule-editor.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/filter/rule-editor.c b/filter/rule-editor.c
index 903eab8cec..3e9290801f 100644
--- a/filter/rule-editor.c
+++ b/filter/rule-editor.c
@@ -737,6 +737,10 @@ rule_editor_construct (RuleEditor *re, RuleContext *context, GladeXML *gui, cons
GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
NULL);
- } else
- gtk_dialog_add_buttons ((GtkDialog *) re, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL);
+ } else {
+ gtk_dialog_add_buttons ((GtkDialog *) re,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+ NULL);
+ }
}