From 1a0d4df95730ab26981b3f26aa365aae84da36f5 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sun, 28 Nov 1999 22:26:39 +0000 Subject: New methods; They implement editing. 1999-11-28 Miguel de Icaza * e-cell-text.c (ect_enter_edit, ect_leave_edit): New methods; They implement editing. * e-cell.h: new methods: enter_edit, leave_edit * e-table-model.h (set_value_at): make val argument const. * e-table-simple.c (simple_set_value_at): Make value argument const; * e-table-item.c (eti_set_arg): Add new mode: draw_focus; svn path=/trunk/; revision=1442 --- widgets/e-table/e-cell.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (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 9caa31f2ca..2bc49f7a45 100644 --- a/widgets/e-table/e-cell.c +++ b/widgets/e-table/e-cell.c @@ -13,7 +13,7 @@ #define PARENT_TYPE gtk_object_get_type() static ECellView * -ec_realize (ECell *e_cell, GnomeCanvas *canvas) +ec_realize (ECell *e_cell, void *view) { return NULL; } @@ -28,20 +28,20 @@ ec_draw (ECellView *ecell_view, GdkDrawable *drawable, int col, int row, gboolean selected, int x1, int y1, int x2, int y2) { - g_warning ("e-cell-draw invoked\n"); + g_error ("e-cell-draw invoked\n"); } static gint ec_event (ECellView *ecell_view, GdkEvent *event, int col, int row) { - g_warning ("e-cell-event invoked\n"); + g_error ("e-cell-event invoked\n"); return 0; } static gint ec_height (ECellView *ecell_view, int col, int row) { - g_warning ("e-cell-event invoked\n"); + g_error ("e-cell-event invoked\n"); return 0; } @@ -98,10 +98,10 @@ e_cell_event (ECellView *ecell_view, GdkEvent *event, int col, int row) } ECellView * -e_cell_realize (ECell *ecell, GnomeCanvas *canvas) +e_cell_realize (ECell *ecell, void *view) { return E_CELL_CLASS (GTK_OBJECT (ecell)->klass)->realize ( - ecell, canvas); + ecell, view); } void @@ -125,3 +125,16 @@ e_cell_height (ECellView *ecell_view, int col, int row) ecell_view, col, row); } +void * +e_cell_enter_edit (ECellView *ecell_view, int col, int row) +{ + return E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->enter_edit ( + ecell_view, col, row); +} + +void +e_cell_leave_edit (ECellView *ecell_view, int col, int row, void *edit_context) +{ + E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->leave_edit ( + ecell_view, col, row, edit_context); +} -- cgit