From 48334023dd13f749a84cf83bb1d18774d2393e1c Mon Sep 17 00:00:00 2001 From: Mathias Hasselmann Date: Tue, 28 Aug 2007 21:04:21 +0000 Subject: Make sure natural_delta is initialized. 2007-08-28 Mathias Hasselmann * gtk/gtktable.c: Make sure natural_delta is initialized. svn path=/branches/extended-layout/; revision=18698 --- ChangeLog.gtk-extended-layout | 4 ++++ gtk/gtktable.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.gtk-extended-layout b/ChangeLog.gtk-extended-layout index ba00c6907b..f84275254c 100644 --- a/ChangeLog.gtk-extended-layout +++ b/ChangeLog.gtk-extended-layout @@ -1,3 +1,7 @@ +2007-08-28 Mathias Hasselmann + + * gtk/gtktable.c: Make sure natural_delta is initialized. + 2007-08-28 Mathias Hasselmann * tests/testextendedlayout.c: Test size-for-allocation for GtkTable. diff --git a/gtk/gtktable.c b/gtk/gtktable.c index 006fc4ec79..eb94c5d733 100644 --- a/gtk/gtktable.c +++ b/gtk/gtktable.c @@ -1487,6 +1487,7 @@ gtk_table_size_allocate_pass1 (GtkTable *table) real_width = GTK_WIDGET (table)->allocation.width - GTK_CONTAINER (table)->border_width * 2; real_height = GTK_WIDGET (table)->allocation.height - GTK_CONTAINER (table)->border_width * 2; + natural_delta = 0; if (table->homogeneous) { @@ -1521,7 +1522,6 @@ gtk_table_size_allocate_pass1 (GtkTable *table) width = 0; nexpand = 0; nshrink = 0; - natural_delta = 0; for (col = 0; col < table->ncols; col++) { -- cgit v1.2.1