[evolution-patches] etree patch



<soapbox>Using g_new rather than g_new0 to initialize priv structures is
evil</soapbox>


Index: gal/e-table/ChangeLog
===================================================================
RCS file: /cvs/gnome/gal/gal/e-table/ChangeLog,v
retrieving revision 1.906
diff -u -r1.906 ChangeLog
--- gal/e-table/ChangeLog	23 Jun 2003 20:30:21 -0000	1.906
+++ gal/e-table/ChangeLog	27 Jun 2003 19:46:30 -0000
@@ -1,3 +1,8 @@
+2003-06-27  Dan Winship  <danw ximian com>
+
+	* e-tree.c (e_tree_init): Initialize some missing fields. Fixes
+	"no handler with id" warnings at evo shutdown
+
 2003-06-22  Hans Petter Jansson  <hpj ximian com>
 
 	* e-cell-text.c (get_font_for_size): Implement.
Index: gal/e-table/e-tree.c
===================================================================
RCS file: /cvs/gnome/gal/gal/e-table/e-tree.c,v
retrieving revision 1.104
diff -u -r1.104 e-tree.c
--- gal/e-table/e-tree.c	13 Jun 2003 22:27:03 -0000	1.104
+++ gal/e-table/e-tree.c	27 Jun 2003 19:46:31 -0000
@@ -558,6 +558,12 @@
 	e_tree->priv->scroll_idle_id         = 0;
 	e_tree->priv->hover_idle_id          = 0;
 
+	e_tree->priv->table_model_change_id  = 0;
+	e_tree->priv->table_row_change_id    = 0;
+	e_tree->priv->table_cell_change_id   = 0;
+	e_tree->priv->table_rows_inserted_id = 0;
+	e_tree->priv->table_rows_deleted_id  = 0;
+
 	e_tree->priv->alternating_row_colors = 1;
 	e_tree->priv->horizontal_draw_grid   = 1;
 	e_tree->priv->vertical_draw_grid     = 1;
@@ -568,6 +574,7 @@
 
 	e_tree->priv->row_selection_active   = FALSE;
 	e_tree->priv->horizontal_scrolling   = FALSE;
+	e_tree->priv->scroll_direction       = 0;
 
 	e_tree->priv->drop_row               = -1;
 	e_tree->priv->drop_path              = NULL;


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