aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table-test.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-test.c
parentb92f33ed1198949e1275f8b7580fa3e367a47450 (diff)
downloadgsoc2013-evolution-465c8ae9a0cac78793cac6097b6bfbabc3a342de.tar
gsoc2013-evolution-465c8ae9a0cac78793cac6097b6bfbabc3a342de.tar.gz
gsoc2013-evolution-465c8ae9a0cac78793cac6097b6bfbabc3a342de.tar.bz2
gsoc2013-evolution-465c8ae9a0cac78793cac6097b6bfbabc3a342de.tar.lz
gsoc2013-evolution-465c8ae9a0cac78793cac6097b6bfbabc3a342de.tar.xz
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-test.c')
-rw-r--r--widgets/table-test.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/widgets/table-test.c b/widgets/table-test.c
index 4917511261..d7c14e900f 100644
--- a/widgets/table-test.c
+++ b/widgets/table-test.c
@@ -172,12 +172,6 @@ set_canvas_size (GnomeCanvas *canvas, GtkAllocation *alloc)
gnome_canvas_set_scroll_region (canvas, 0, 0, alloc->width, alloc->height);
}
-static int
-row_height (ETableModel *etm, int row, void *data)
-{
- return row * 2 + 14;
-}
-
int
main (int argc, char *argv [])
{
@@ -197,13 +191,13 @@ main (int argc, char *argv [])
*/
e_table_model = e_table_simple_new (
col_count, col_name, row_count, value_at,
- set_value_at, is_cell_editable, row_height, NULL);
+ set_value_at, is_cell_editable, NULL);
/*
* Header
*/
e_table_header = e_table_header_new ();
- cell_left_just = e_cell_text_new (e_table_model, "fixed", GTK_JUSTIFY_LEFT);
+ cell_left_just = e_cell_text_new (e_table_model, NULL, GTK_JUSTIFY_LEFT);
for (i = 0; i < cols; i++){
ETableCol *ecol = e_table_col_new (