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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
fa49e3e673
commit
32f1cfd13f
@ -1,3 +1,11 @@
|
||||
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.
|
||||
|
||||
2003-03-11 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
* rule-context.c (revert): go to the proper level of child node
|
||||
|
||||
@ -25,26 +25,26 @@
|
||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-ok</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">0</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button3">
|
||||
<widget class="GtkButton" id="cancel_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-cancel</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">0</property>
|
||||
<property name="response_id">-6</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="ok_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-ok</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">-5</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
@ -270,26 +270,26 @@
|
||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button13">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-ok</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">0</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button15">
|
||||
<widget class="GtkButton" id="cancel_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-cancel</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">0</property>
|
||||
<property name="response_id">-6</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="ok_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-ok</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">-5</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
@ -480,19 +480,19 @@
|
||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button16">
|
||||
<widget class="GtkButton" id="cancel_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-ok</property>
|
||||
<property name="label">gtk-cancel</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">0</property>
|
||||
<property name="response_id">-6</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button17">
|
||||
<widget class="GtkButton" id="apply_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
@ -504,14 +504,14 @@
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button18">
|
||||
<widget class="GtkButton" id="ok_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-cancel</property>
|
||||
<property name="label">gtk-ok</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">0</property>
|
||||
<property name="response_id">-5</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
@ -4,17 +4,34 @@ char *s = N_("Assign Color");
|
||||
char *s = N_("Assign Score");
|
||||
char *s = N_("Attachments");
|
||||
char *s = N_("Beep");
|
||||
char *s = N_("contains");
|
||||
char *s = N_("Copy to Folder");
|
||||
char *s = N_("Date received");
|
||||
char *s = N_("Date sent");
|
||||
char *s = N_("Delete");
|
||||
char *s = N_("Deleted");
|
||||
char *s = N_("does not contain");
|
||||
char *s = N_("does not end with");
|
||||
char *s = N_("does not exist");
|
||||
char *s = N_("does not return");
|
||||
char *s = N_("does not sound like");
|
||||
char *s = N_("does not start with");
|
||||
char *s = N_("Do Not Exist");
|
||||
char *s = N_("Draft");
|
||||
char *s = N_("ends with");
|
||||
char *s = N_("Exist");
|
||||
char *s = N_("exists");
|
||||
char *s = N_("Expression");
|
||||
char *s = N_("Follow Up");
|
||||
char *s = N_("Important");
|
||||
char *s = N_("is");
|
||||
char *s = N_("is after");
|
||||
char *s = N_("is before");
|
||||
char *s = N_("is Flagged");
|
||||
char *s = N_("is greater than");
|
||||
char *s = N_("is less than");
|
||||
char *s = N_("is not");
|
||||
char *s = N_("is not Flagged");
|
||||
char *s = N_("Label");
|
||||
char *s = N_("Mailing list");
|
||||
char *s = N_("Message Body");
|
||||
@ -26,36 +43,19 @@ char *s = N_("Read");
|
||||
char *s = N_("Recipients");
|
||||
char *s = N_("Regex Match");
|
||||
char *s = N_("Replied to");
|
||||
char *s = N_("returns");
|
||||
char *s = N_("returns greater than");
|
||||
char *s = N_("returns less than");
|
||||
char *s = N_("Score");
|
||||
char *s = N_("Sender");
|
||||
char *s = N_("Set Status");
|
||||
char *s = N_("Shell Command");
|
||||
char *s = N_("Size (kB)");
|
||||
char *s = N_("sounds like");
|
||||
char *s = N_("Source Account");
|
||||
char *s = N_("Specific header");
|
||||
char *s = N_("starts with");
|
||||
char *s = N_("Status");
|
||||
char *s = N_("Stop Processing");
|
||||
char *s = N_("Subject");
|
||||
char *s = N_("Unset Status");
|
||||
char *s = N_("contains");
|
||||
char *s = N_("does not contain");
|
||||
char *s = N_("does not end with");
|
||||
char *s = N_("does not exist");
|
||||
char *s = N_("does not return");
|
||||
char *s = N_("does not sound like");
|
||||
char *s = N_("does not start with");
|
||||
char *s = N_("ends with");
|
||||
char *s = N_("exists");
|
||||
char *s = N_("is Flagged");
|
||||
char *s = N_("is after");
|
||||
char *s = N_("is before");
|
||||
char *s = N_("is greater than");
|
||||
char *s = N_("is less than");
|
||||
char *s = N_("is not Flagged");
|
||||
char *s = N_("is not");
|
||||
char *s = N_("is");
|
||||
char *s = N_("returns greater than");
|
||||
char *s = N_("returns less than");
|
||||
char *s = N_("returns");
|
||||
char *s = N_("sounds like");
|
||||
char *s = N_("starts with");
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user