From 465c8ae9a0cac78793cac6097b6bfbabc3a342de Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 26 Nov 1999 19:25:02 +0000 Subject: Compute height using the ecell methods here. (eti_get_height): new method 1999-11-26 Miguel de Icaza * e-table-item.c (eti_realize): Compute height using the ecell methods here. (eti_get_height): new method to compute dimensions. * e-cursors.c: use a different cursor. * e-table-model.h: kill height and row_height methods. * e-cell.c (ec_height): New method. * e-cell-text.c (ect_realize): Load the font from the canvas. (ect_draw): New color setup. Center in the row. (ect_height): Implement new method. 1999-11-26 Michael Meeks * ROADMAP.e-table: small spelling/typo fixes. 1999-11-25 Miguel de Icaza * e-table-item.c (eti_event): Work on mouse-button event svn path=/trunk/; revision=1439 --- widgets/e-table/e-cell.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'widgets/e-table/e-cell.c') diff --git a/widgets/e-table/e-cell.c b/widgets/e-table/e-cell.c index bff0fb88f2..8a8897c22a 100644 --- a/widgets/e-table/e-cell.c +++ b/widgets/e-table/e-cell.c @@ -35,6 +35,13 @@ ec_event (ECellView *ecell_view, GdkEvent *event, int col, int row) g_warning ("e-cell-event invoked\n"); } +static gint +ec_height (ECellView *ecell_view, int col, int row) +{ + g_warning ("e-cell-event invoked\n"); + return 0; +} + static void ec_focus (ECellView *ecell_view, int col, int row, int x1, int y1, int x2, int y2) { @@ -68,6 +75,7 @@ e_cell_class_init (GtkObjectClass *object_class) ecc->event = ec_event; ecc->focus = ec_focus; ecc->unfocus = ec_unfocus; + ecc->height = ec_height; } static void @@ -107,3 +115,10 @@ e_cell_draw (ECellView *ecell_view, GdkDrawable *drawable, ecell_view, drawable, col, row, x1, y1, x2, y2); } +int +e_cell_height (ECellView *ecell_view, int col, int row) +{ + return E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->height ( + ecell_view, col, row); +} + -- cgit v1.2.3