From 86e45230bdfccc8c6a80dc81714aeb95cfd03b32 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 11 Jun 2000 04:08:59 +0000 Subject: Small syntactic changes. 2000-06-11 Christopher James Lahey * e-table-model.c: Small syntactic changes. * e-table.c: Moved the table header into the scrolled view. svn path=/trunk/; revision=3517 --- widgets/e-table/e-table.c | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'widgets/e-table/e-table.c') diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c index d88daac5db..f278ad11a5 100644 --- a/widgets/e-table/e-table.c +++ b/widgets/e-table/e-table.c @@ -449,7 +449,8 @@ et_real_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm, xmlNode *xmlGrouping; int no_header; int row = 0; - + + GtkWidget *internal_table; GtkWidget *scrollframe; xmlRoot = xmlDocGetRootElement (xmlSpec); @@ -498,29 +499,37 @@ et_real_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm, E_SCROLL_FRAME (scrollframe), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - - gtk_container_add ( - GTK_CONTAINER (scrollframe), - GTK_WIDGET (e_table->table_canvas)); - gtk_widget_show (scrollframe); - + + internal_table = gtk_table_new(1, 2, FALSE); if (!no_header) { /* * The header */ gtk_table_attach ( - GTK_TABLE (e_table), GTK_WIDGET (e_table->header_canvas), + GTK_TABLE (internal_table), GTK_WIDGET (e_table->header_canvas), 0, 1, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0); row ++; } + gtk_table_attach (GTK_TABLE (internal_table), GTK_WIDGET (e_table->table_canvas), + 0, 1, 0 + row, 1 + row, + GTK_FILL | GTK_EXPAND, + GTK_FILL | GTK_EXPAND, + 0, 0); + gtk_widget_show(internal_table); + + gtk_container_add ( + GTK_CONTAINER (scrollframe), + internal_table); + gtk_widget_show (scrollframe); + /* * The body */ gtk_table_attach ( GTK_TABLE (e_table), GTK_WIDGET (scrollframe), - 0, 1, 0 + row, 1 + row, + 0, 1, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 0, 0); -- cgit