aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-model.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>1999-11-27 03:25:02 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-11-27 03:25:02 +0800
commit465c8ae9a0cac78793cac6097b6bfbabc3a342de (patch)
tree6722a7709aaeccb913d73828d075301d68885cc4 /widgets/table/e-table-model.c
parentb92f33ed1198949e1275f8b7580fa3e367a47450 (diff)
downloadgsoc2013-evolution-465c8ae9a0cac78793cac6097b6bfbabc3a342de.tar.gz
gsoc2013-evolution-465c8ae9a0cac78793cac6097b6bfbabc3a342de.tar.zst
gsoc2013-evolution-465c8ae9a0cac78793cac6097b6bfbabc3a342de.zip
Compute height using the ecell methods here. (eti_get_height): new method
1999-11-26 Miguel de Icaza <miguel@gnu.org> * 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 <mmeeks@gnu.org> * ROADMAP.e-table: small spelling/typo fixes. 1999-11-25 Miguel de Icaza <miguel@gnu.org> * e-table-item.c (eti_event): Work on mouse-button event svn path=/trunk/; revision=1439
Diffstat (limited to 'widgets/table/e-table-model.c')
-rw-r--r--widgets/table/e-table-model.c30
1 files changed, 7 insertions, 23 deletions
diff --git a/widgets/table/e-table-model.c b/widgets/table/e-table-model.c
index 1176b33ec7..3aa4e4be47 100644
--- a/widgets/table/e-table-model.c
+++ b/widgets/table/e-table-model.c
@@ -58,12 +58,6 @@ e_table_model_is_cell_editable (ETableModel *etable, int col, int row)
return ETM_CLASS (etable)->is_cell_editable (etable, col, row);
}
-int
-e_table_model_row_height (ETableModel *etable, int row)
-{
- return ETM_CLASS (etable)->row_height (etable, row);
-}
-
static void
e_table_model_destroy (GtkObject *object)
{
@@ -101,6 +95,12 @@ e_table_model_class_init (GtkObjectClass *object_class)
gtk_object_class_add_signals (object_class, etm_signals, LAST_SIGNAL);
}
+static void
+e_table_model_init (ETableModel *etm)
+{
+ etm->row_selected = -1;
+}
+
GtkType
e_table_model_get_type (void)
{
@@ -112,7 +112,7 @@ e_table_model_get_type (void)
sizeof (ETableModel),
sizeof (ETableModelClass),
(GtkClassInitFunc) e_table_model_class_init,
- (GtkObjectInitFunc) NULL,
+ (GtkObjectInitFunc) e_table_model_init,
NULL, /* reserved 1 */
NULL, /* reserved 2 */
(GtkClassInitFunc) NULL
@@ -124,22 +124,6 @@ e_table_model_get_type (void)
return type;
}
-int
-e_table_model_height (ETableModel *etable)
-{
- int rows, size, i;
-
- g_return_val_if_fail (etable != NULL, 0);
-
- rows = e_table_model_row_count (etable);
- size = 0;
-
- for (i = 0; i < rows; i++)
- size += e_table_model_row_height (etable, i) + 1;
-
- return size;
-}
-
void
e_table_model_changed (ETableModel *e_table_model)
{