[evolution-patches] patch for #48815



Hello, all.

I have attached a patch for 48815 here.
In it, I process the GTK_RESPONSE_DELETE_EVENT return value of the dialog to get the dialog closed on pressing `ESC' or click the close button on the righttop corner. In the same time, fix an ambiguous usage of continue statement in the switch section.

Please review it.
Index: gal/e-table/e-table-config.c
===================================================================
RCS file: /cvs/gnome/gal/gal/e-table/e-table-config.c,v
retrieving revision 1.58.2.1
diff -u -p -r1.58.2.1 e-table-config.c
--- gal/e-table/e-table-config.c	11 Sep 2003 21:08:43 -0000	1.58.2.1
+++ gal/e-table/e-table-config.c	28 Sep 2003 07:11:20 -0000
@@ -442,7 +442,7 @@ do_sort_and_group_config_dialog (ETableC
 					config->temp_state->sort_info, 0);
 			}
 			update_sort_and_group_config_dialog (config, is_sort);
-			continue;
+			break;
 
 		case GTK_RESPONSE_OK:
 			g_object_unref (config->state);
@@ -452,6 +452,7 @@ do_sort_and_group_config_dialog (ETableC
 			config_dialog_changed (config);
 			break;
 
+		case GTK_RESPONSE_DELETE_EVENT:
 		case GTK_RESPONSE_CANCEL:
 			g_object_unref (config->temp_state);
 			config->temp_state = 0;
@@ -491,7 +492,7 @@ do_fields_config_dialog (ETableConfig *c
 			config_dialog_changed (config);
 			break;
 
-			/* CANCEL */
+		case GTK_RESPONSE_DELETE_EVENT:
 		case GTK_RESPONSE_CANCEL:
 			g_object_unref (config->temp_state);
 			config->temp_state = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]