diff options
author | Miguel de Icaza <miguel@gnu.org> | 1999-11-29 06:26:39 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-11-29 06:26:39 +0800 |
commit | 1a0d4df95730ab26981b3f26aa365aae84da36f5 (patch) | |
tree | 887f57713f7baefffc4022b66b20c67160b4be80 /widgets/e-cell.h | |
parent | 8d75b6689bdf5dc7c1efad65867cba2a656f2dcc (diff) | |
download | gsoc2013-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/e-cell.h')
-rw-r--r-- | widgets/e-cell.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/widgets/e-cell.h b/widgets/e-cell.h index 9cd62f3909..b0f62d020c 100644 --- a/widgets/e-cell.h +++ b/widgets/e-cell.h @@ -1,7 +1,7 @@ #ifndef _E_CELL_H_ #define _E_CELL_H_ -#include <libgnomeui/gnome-canvas.h> +#include <gdk/gdktypes.h> #include "e-table-model.h" #define E_CELL_TYPE (e_cell_get_type ()) @@ -29,19 +29,22 @@ struct _ECellView { typedef struct { GtkObjectClass parent_class; - ECellView *(*realize) (ECell *, GnomeCanvas *canvas); - void (*unrealize) (ECellView *); + ECellView *(*realize) (ECell *ecell, void *view); + void (*unrealize) (ECellView *e_cell_view); void (*draw) (ECellView *ecell_view, GdkDrawable *drawable, int col, int row, gboolean selected, int x1, int y1, int x2, int y2); gint (*event) (ECellView *ecell_view, GdkEvent *event, int col, int row); - void (*focus) (ECellView *ecell, int col, int row, int x1, int y1, int x2, int y2); - void (*unfocus) (ECellView *ecell); - int (*height) (ECellView *ecell, int col, int row); + void (*focus) (ECellView *ecell_view, int col, int row, int x1, int y1, int x2, int y2); + void (*unfocus) (ECellView *ecell_view); + int (*height) (ECellView *ecell_view, int col, int row); + + void *(*enter_edit)(ECellView *ecell_view, int col, int row); + void (*leave_edit)(ECellView *ecell_view, int col, int row, void *context); } ECellClass; GtkType e_cell_get_type (void); void e_cell_event (ECellView *ecell_view, GdkEvent *event, int col, int row); -ECellView *e_cell_realize (ECell *ecell, GnomeCanvas *canvas); +ECellView *e_cell_realize (ECell *ecell, void *view); void e_cell_unrealize (ECellView *ecell_view); void e_cell_draw (ECellView *ecell_view, GdkDrawable *dr, int col, int row, gboolean selected, @@ -50,4 +53,7 @@ void e_cell_focus (ECellView *ecell_view, int col, int row, int x1, in void e_cell_unfocus (ECellView *ecell_view); int e_cell_height (ECellView *ecell_view, int col, int row); +void *e_cell_enter_edit(ECellView *ecell_view, int col, int row); +void e_cell_leave_edit(ECellView *ecell_view, int col, int row, void *edit_context); + #endif /* _E_CELL_H_ */ |