aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>1999-11-29 06:26:39 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-11-29 06:26:39 +0800
commit1a0d4df95730ab26981b3f26aa365aae84da36f5 (patch)
tree887f57713f7baefffc4022b66b20c67160b4be80 /widgets/table/e-cell.c
parent8d75b6689bdf5dc7c1efad65867cba2a656f2dcc (diff)
downloadgsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.gz
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.bz2
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.lz
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.xz
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.zst
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.zip
New methods; They implement editing.
1999-11-28 Miguel de Icaza <miguel@gnu.org> * 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
Diffstat (limited to 'widgets/table/e-cell.c')
-rw-r--r--widgets/table/e-cell.c25
1 files changed, 19 insertions, 6 deletions
diff --git a/widgets/table/e-cell.c b/widgets/table/e-cell.c
index 9caa31f2ca..2bc49f7a45 100644
--- a/widgets/table/e-cell.c
+++ b/widgets/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);
+}