diff options
author | Miguel de Icaza <miguel@gnu.org> | 1999-11-21 07:37:37 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-11-21 07:37:37 +0800 |
commit | 77df46c366a3b761288db21b2593e963c4590207 (patch) | |
tree | dc70c4ff1d434b76654e68e0fe7f8b1e28fba81c /widgets/table-test.c | |
parent | 76fba2380e809d44b716343a4c7a18e907948618 (diff) | |
download | gsoc2013-evolution-77df46c366a3b761288db21b2593e963c4590207.tar gsoc2013-evolution-77df46c366a3b761288db21b2593e963c4590207.tar.gz gsoc2013-evolution-77df46c366a3b761288db21b2593e963c4590207.tar.bz2 gsoc2013-evolution-77df46c366a3b761288db21b2593e963c4590207.tar.lz gsoc2013-evolution-77df46c366a3b761288db21b2593e963c4590207.tar.xz gsoc2013-evolution-77df46c366a3b761288db21b2593e963c4590207.tar.zst gsoc2013-evolution-77df46c366a3b761288db21b2593e963c4590207.zip |
Compute width, keep track of it. (ethi_add_table_header): Monitor changes
1999-11-20 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (ethi_set_arg): Compute width, keep track
of it.
(ethi_add_table_header): Monitor changes to the Header model;
Queue updates.
(ethi_draw): Fix the redraw logic here.
* table-test.c (main): Change the sample code, so we can better
debug this.
* e-table-item.c (eti_header_structure_changed): Keep track of
width;
(eti_header_dim_changed): ditto.
(eti_draw): Many redraw fixes.
svn path=/trunk/; revision=1425
Diffstat (limited to 'widgets/table-test.c')
-rw-r--r-- | widgets/table-test.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/widgets/table-test.c b/widgets/table-test.c index 50fa8a7597..54392a73bc 100644 --- a/widgets/table-test.c +++ b/widgets/table-test.c @@ -226,15 +226,8 @@ main (int argc, char *argv []) gnome_canvas_root (GNOME_CANVAS (canvas)), e_table_header_item_get_type (), "ETableHeader", e_table_header, - NULL); - gnome_canvas_item_new ( - gnome_canvas_root (GNOME_CANVAS (canvas)), - gnome_canvas_rect_get_type (), - "x1", 0.0, - "y1", 0.0, - "x2", 10.0, - "y2", 10.0, - "fill_color", "red", + "x", 0, + "y", 0, NULL); gnome_canvas_item_new ( @@ -242,8 +235,8 @@ main (int argc, char *argv []) e_table_item_get_type (), "ETableHeader", e_table_header, "ETableModel", e_table_model, - "x", 0, - "y", 30, + "x", 10, + "y", 30, NULL); gtk_main (); |