diff options
author | Miguel de Icaza <miguel@gnu.org> | 1999-11-25 16:02:13 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-11-25 16:02:13 +0800 |
commit | 385ccbd512c4c43305dee900f86d0f51f94b1200 (patch) | |
tree | 81920b9b2281f21a55ccd417895d0bd3a271cff7 /widgets/table-test.c | |
parent | 858500c40a2bf4485e75e1a056d0310b92625929 (diff) | |
download | gsoc2013-evolution-385ccbd512c4c43305dee900f86d0f51f94b1200.tar.gz gsoc2013-evolution-385ccbd512c4c43305dee900f86d0f51f94b1200.tar.zst gsoc2013-evolution-385ccbd512c4c43305dee900f86d0f51f94b1200.zip |
Realize cells.
1999-11-25 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (ethi_realize): Realize cells.
* e-table-item.c (eti_header_dim_changed): redraw before and after.
* e-table-header-item.c (ethi_event): Add continuous resizing.
1999-11-24 Miguel de Icaza <miguel@gnu.org>
* e-table-subset.h, e-table-subset.c: New files, used to implement
subset tables.
* e-table-sorted.h, e-table-sorted.c: Now they derive from
e-table-subset.
* e-cell.c, e-cell.h: realize method now return per view instance
data.
svn path=/trunk/; revision=1434
Diffstat (limited to 'widgets/table-test.c')
-rw-r--r-- | widgets/table-test.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/widgets/table-test.c b/widgets/table-test.c index 54392a73bc..e646b44655 100644 --- a/widgets/table-test.c +++ b/widgets/table-test.c @@ -11,7 +11,6 @@ #include "e-table-simple.h" #include "e-table-header.h" #include "e-table-header-item.h" -#include "e-table-render.h" #include "e-table-item.h" char buffer [1024]; @@ -185,6 +184,7 @@ main (int argc, char *argv []) GtkWidget *canvas, *window; ETableModel *e_table_model; ETableHeader *e_table_header; + ECell *cell_left_just; int i; gnome_init ("TableTest", "TableTest", argc, argv); @@ -203,10 +203,12 @@ main (int argc, char *argv []) * Header */ e_table_header = e_table_header_new (); + cell_left_just = e_cell_text_new ("fixed", GTK_JUSTIFY_LEFT); + for (i = 0; i < cols; i++){ ETableCol *ecol = e_table_col_new ( - column_labels [i], 80, 20, e_table_render_string, - NULL, g_str_equal, TRUE); + column_labels [i], 80, 20, cell_left_just, + g_str_equal, TRUE); e_table_header_add_column (e_table_header, ecol, i); } |