From 872691b50eb68d38d814ea1f919a0190b9a658fc Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 4 Aug 2001 23:09:34 +0000 Subject: Set the hadjustment and vadjustment here. From a patch by Kevin 2001-08-04 Christopher James Lahey * e-tree-scrolled.c (e_tree_scrolled_new): Set the hadjustment and vadjustment here. From a patch by Kevin Vandersloot . Fixes Ximian bug #6400. svn path=/trunk/; revision=11684 --- widgets/table/e-tree-scrolled.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/widgets/table/e-tree-scrolled.c b/widgets/table/e-tree-scrolled.c index ba1780036c..4038746685 100644 --- a/widgets/table/e-tree-scrolled.c +++ b/widgets/table/e-tree-scrolled.c @@ -131,8 +131,10 @@ GtkWidget *e_tree_scrolled_new_from_spec_file (ETreeModel *etm g_return_val_if_fail(ete == NULL || E_IS_TABLE_EXTRAS(ete), NULL); g_return_val_if_fail(spec_fn != NULL, NULL); - ets = gtk_type_new (e_tree_scrolled_get_type ()); - + ets = E_TREE_SCROLLED (gtk_widget_new (e_tree_scrolled_get_type (), + "hadjustment", NULL, + "vadjustment", NULL, + NULL)); ets = e_tree_scrolled_construct_from_spec_file (ets, etm, ete, spec_fn, state_fn); return GTK_WIDGET (ets); -- cgit v1.2.3