[evolution-patches] mail, 47751, esc closing dialogues in filters
- From: Not Zed <notzed ximian com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] mail, 47751, esc closing dialogues in filters
- Date: Mon, 01 Dec 2003 10:29:58 +1100
This was sitting around in my tree, i guess i forgot about it. earlier discussion suggests this is a simpler fix around a much discussed problem on e-p earlier this year.
Z
? a.diff
? filter-system-flag.c
? filter-system-flag.h
? filter-url.c
? filter-url.h
? filter.diff
? filter.txt
? old
? search-types.xml
? shit.txt
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/filter/ChangeLog,v
retrieving revision 1.371.4.3
diff -u -3 -r1.371.4.3 ChangeLog
--- ChangeLog 22 Sep 2003 19:19:07 -0000 1.371.4.3
+++ ChangeLog 30 Nov 2003 23:25:22 -0000
@@ -1,3 +1,13 @@
+2003-08-20 Not Zed <NotZed Ximian com>
+
+ ** See bug #47751.
+
+ * rule-editor.c (add_editor_response, edit_editor_response)
+ (rule_edit, rule_add, rule_editor_construct, editor_response):
+ * rule-context.c (new_rule_response, rule_context_add_rule_gui):
+ * filter-datespec.c (button_clicked): RESPONSE_REJECT/ACCEPT ->
+ RESPONSE_CANCEL/OK
+
2003-09-22 Jeffrey Stedfast <fejj ximian com>
* filter-int.c (get_widget): Listen to the "value-changed" signal
Index: filter-datespec.c
===================================================================
RCS file: /cvs/gnome/evolution/filter/filter-datespec.c,v
retrieving revision 1.32
diff -u -3 -r1.32 filter-datespec.c
--- filter-datespec.c 27 Mar 2003 23:54:16 -0000 1.32
+++ filter-datespec.c 30 Nov 2003 23:25:24 -0000
@@ -405,8 +405,8 @@
dialog = (GtkDialog *) gtk_dialog_new ();
gtk_window_set_title ((GtkWindow *) dialog, _("Select a time to compare against"));
gtk_dialog_add_buttons (dialog,
- GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
- GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
p->notebook_type = glade_xml_get_widget (gui, "notebook_type");
@@ -424,7 +424,7 @@
gtk_box_pack_start ((GtkBox *) dialog->vbox, toplevel, TRUE, TRUE, 3);
- if (gtk_dialog_run (dialog) == GTK_RESPONSE_ACCEPT) {
+ if (gtk_dialog_run (dialog) == GTK_RESPONSE_OK) {
get_values (fds);
set_button (fds);
}
Index: rule-context.c
===================================================================
RCS file: /cvs/gnome/evolution/filter/rule-context.c,v
retrieving revision 1.49.4.1
diff -u -3 -r1.49.4.1 rule-context.c
--- rule-context.c 16 Sep 2003 21:13:44 -0000 1.49.4.1
+++ rule-context.c 30 Nov 2003 23:25:25 -0000
@@ -649,7 +649,7 @@
static void
new_rule_response(GtkWidget *dialog, int button, RuleContext *context)
{
- if (button == GTK_RESPONSE_ACCEPT) {
+ if (button == GTK_RESPONSE_OK) {
FilterRule *rule = g_object_get_data((GObject *) dialog, "rule");
char *user = g_object_get_data((GObject *) dialog, "path");
@@ -696,9 +696,9 @@
dialog =(GtkDialog *) gtk_dialog_new();
gtk_dialog_add_buttons(dialog,
- GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
- GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
- NULL);
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_OK, GTK_RESPONSE_OK,
+ NULL);
gtk_window_set_title((GtkWindow *) dialog, title);
gtk_window_set_default_size((GtkWindow *) dialog, 600, 400);
Index: rule-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/filter/rule-editor.c,v
retrieving revision 1.54
diff -u -3 -r1.54 rule-editor.c
--- rule-editor.c 29 Apr 2003 17:08:40 -0000 1.54
+++ rule-editor.c 30 Nov 2003 23:25:27 -0000
@@ -229,7 +229,7 @@
GtkTreePath *path;
GtkTreeIter iter;
- if (button == GTK_RESPONSE_ACCEPT) {
+ if (button == GTK_RESPONSE_OK) {
if (!filter_rule_validate (re->edit)) {
/* no need to popup a dialog because the validate code does that. */
return;
@@ -284,8 +284,8 @@
re->dialog = gtk_dialog_new ();
gtk_dialog_add_buttons ((GtkDialog *) re->dialog,
- GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
- GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
gtk_window_set_title ((GtkWindow *) re->dialog, _("Add Rule"));
@@ -312,7 +312,7 @@
GtkTreeIter iter;
int pos;
- if (button == GTK_RESPONSE_ACCEPT) {
+ if (button == GTK_RESPONSE_OK) {
if (!filter_rule_validate (re->edit)) {
/* no need to popup a dialog because the validate code does that. */
return;
@@ -366,8 +366,8 @@
re->dialog = gtk_dialog_new ();
gtk_dialog_add_buttons ((GtkDialog *) re->dialog,
- GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
- GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
gtk_window_set_title ((GtkWindow *) re->dialog, _("Edit Rule"));
@@ -649,7 +649,7 @@
static void
editor_response (GtkWidget *dialog, int button, RuleEditor *re)
{
- if (button == GTK_RESPONSE_REJECT) {
+ if (button == GTK_RESPONSE_CANCEL) {
if (enable_undo)
rule_editor_play_undo (re);
else {
@@ -736,15 +736,8 @@
g_signal_connect (re, "response", G_CALLBACK (editor_response), re);
rule_editor_set_source (re, source);
- if (enable_undo) {
- gtk_dialog_add_buttons ((GtkDialog *) re,
- GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
- 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);
- }
+ gtk_dialog_add_buttons ((GtkDialog *) re,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_OK, GTK_RESPONSE_OK,
+ NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]