aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/e-tree-scrolled.c6
1 files 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);