[evolution-patches] patch for #48999



In this patch, I try to fix the bug 48999.

Here, I disable the apply button while initializing the dialog and pressing apply button.

Please see if it works.

Best Regards
Charles Zhang
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	9 Oct 2003 18:32:35 -0000
@@ -1181,7 +1181,10 @@ e_table_config_new (const char          
 		return NULL;
 	}
 
+	gtk_dialog_set_response_sensitive (GTK_DIALOG (config->dialog_toplevel),
+					   GTK_RESPONSE_APPLY, FALSE);
 	gtk_widget_show (config->dialog_toplevel);
+
 	return E_TABLE_CONFIG (config);
 }
 
Index: gal/e-table/e-table-header-item.c
===================================================================
RCS file: /cvs/gnome/gal/gal/e-table/e-table-header-item.c,v
retrieving revision 1.124
diff -u -p -r1.124 e-table-header-item.c
--- gal/e-table/e-table-header-item.c	18 Mar 2003 17:33:02 -0000	1.124
+++ gal/e-table/e-table-header-item.c	9 Oct 2003 18:32:45 -0000
@@ -1426,6 +1426,9 @@ apply_changes (ETableConfig *config, ETa
 	if (ethi->tree)
 		e_tree_set_state (ethi->tree, state);
 	g_free (state);
+
+	gtk_dialog_set_response_sensitive (GTK_DIALOG (config->dialog_toplevel),
+					   GTK_RESPONSE_APPLY, FALSE);
 }
 
 static void


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