aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/test-table.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>2000-02-07 21:08:33 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-02-07 21:08:33 +0800
commit99d71d11328fa1f6d2f0156de63a44142cf99d9c (patch)
treee9b25df47c42c250819ef9ec8e7dc21309bd6865 /widgets/table/test-table.c
parentdec6d6b0971480b8910c301daa6218abe3f2eee0 (diff)
downloadgsoc2013-evolution-99d71d11328fa1f6d2f0156de63a44142cf99d9c.tar.gz
gsoc2013-evolution-99d71d11328fa1f6d2f0156de63a44142cf99d9c.tar.zst
gsoc2013-evolution-99d71d11328fa1f6d2f0156de63a44142cf99d9c.zip
Setup the scroll region of the table canvas on size allocation.
2000-02-07 Miguel de Icaza <miguel@gnu.org> * e-table.c (e_table_setup_table): Setup the scroll region of the table canvas on size allocation. (e_table_canvas_realize): Do not set the scrollregion here. (e_table_canvas_init): Move root initialization here. svn path=/trunk/; revision=1683
Diffstat (limited to 'widgets/table/test-table.c')
-rw-r--r--widgets/table/test-table.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/widgets/table/test-table.c b/widgets/table/test-table.c
index 053f81cfa6..428bb52c52 100644
--- a/widgets/table/test-table.c
+++ b/widgets/table/test-table.c
@@ -255,7 +255,7 @@ table_browser_test (void)
static void
do_e_table_demo (const char *col_spec, const char *group_spec)
{
- GtkWidget *e_table, *window;
+ GtkWidget *e_table, *window, *frame;
ETableModel *e_table_model;
ECell *cell_left_just;
ETableHeader *full_header;
@@ -282,12 +282,14 @@ do_e_table_demo (const char *col_spec, const char *group_spec)
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ frame = gtk_frame_new (NULL);
e_table = e_table_new (full_header, e_table_model, col_spec, group_spec);
-
- gtk_container_add (GTK_CONTAINER (window), e_table);
+ gtk_container_add (GTK_CONTAINER (frame), e_table);
+ gtk_container_add (GTK_CONTAINER (window), frame);
gtk_widget_set_usize (window, 200, 200);
gtk_widget_show (e_table);
+ gtk_widget_show (frame);
gtk_widget_show (window);
}