[evolution-patches] A gal patch



Hi JP,

Here is a little patch in gal. Please help me to review.

Thanks,
Li
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gal/ChangeLog,v
retrieving revision 1.900
diff -u -r1.900 ChangeLog
--- ChangeLog	10 Oct 2004 21:12:05 -0000	1.900
+++ ChangeLog	10 Nov 2004 10:21:44 -0000
@@ -1,3 +1,14 @@
+2004-11-10  Li Yuan  <li yuan sun com>
+
+	* gal/e-table/e-table.c: (e_table_get_cell_geometry):
+	check whether header_canvas and table_canvas is NULL.
+
+2004-10-26  Li Yuan  <li yuan sun com>
+
+	* gal/e-table/e-table.c: (table_canvas_focus_event_cb):
+	if canvas has a focused item but the etable does not have a cursor row,
+	just focus the first item.
+
 2004-10-10  Malcolm Tredinnick <malcolm commsecure com au>
 
 	* configure.in: Remove redundant call to AC_PROG_INTLTOOL and
Index: gal/e-table/e-table.c
===================================================================
RCS file: /cvs/gnome/gal/gal/e-table/e-table.c,v
retrieving revision 1.231
diff -u -r1.231 e-table.c
--- gal/e-table/e-table.c	4 Nov 2004 02:10:17 -0000	1.231
+++ gal/e-table/e-table.c	10 Nov 2004 10:21:54 -0000
@@ -2392,11 +2392,13 @@
 
 	e_table_group_get_cell_geometry(table->group, &row, &col, x_return, y_return, width_return, height_return);
 
-	if (x_return)
+	if (x_return && table->table_canvas)
 		(*x_return) -= GTK_LAYOUT(table->table_canvas)->hadjustment->value;
 	if (y_return) {
-		(*y_return) -= GTK_LAYOUT(table->table_canvas)->vadjustment->value;
-		(*y_return) += GTK_WIDGET(table->header_canvas)->allocation.height;
+		if (table->table_canvas)
+			(*y_return) -= GTK_LAYOUT(table->table_canvas)->vadjustment->value;
+		if (table->header_canvas)
+			(*y_return) += GTK_WIDGET(table->header_canvas)->allocation.height;
 	}
 }
 


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