diff options
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 3f7ab111fa..586544900d 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -1985,10 +1985,6 @@ set_scroll_adjustments (ETree *tree, GtkAdjustment *hadjustment, GtkAdjustment *vadjustment) { - GtkLayout *layout; - - layout = GTK_LAYOUT (tree->priv->table_canvas); - if (vadjustment != NULL) gtk_adjustment_set_step_increment (vadjustment, 20); @@ -1996,6 +1992,10 @@ set_scroll_adjustments (ETree *tree, gtk_adjustment_set_step_increment (hadjustment, 20); if (tree->priv) { + GtkLayout *layout; + + layout = GTK_LAYOUT (tree->priv->table_canvas); + gtk_layout_set_hadjustment (layout, hadjustment); gtk_layout_set_vadjustment (layout, vadjustment); |