summaryrefslogtreecommitdiff
path: root/gtk/gtktable.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2000-07-27 03:13:07 +0000
committerTim Janik <timj@src.gnome.org>2000-07-27 03:13:07 +0000
commitbd918769732f7d2b1395e6a3971b6bd6f3e84adb (patch)
tree3327dc71be3c799ffdaf08866aef94f17bb28d57 /gtk/gtktable.c
parentafee2c67c5091539cbe6270b14e7e74b2a7b60a7 (diff)
downloadgtk+-bd918769732f7d2b1395e6a3971b6bd6f3e84adb.tar.gz
applied patch from Phil Thompson <phil@river-bank.demon.co.uk> that
Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org> * gtk/gtktable.c: applied patch from Phil Thompson <phil@river-bank.demon.co.uk> that enables space settings for the last row/columns as well.
Diffstat (limited to 'gtk/gtktable.c')
-rw-r--r--gtk/gtktable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktable.c b/gtk/gtktable.c
index cf0cbb6c42..7d0fd1f59e 100644
--- a/gtk/gtktable.c
+++ b/gtk/gtktable.c
@@ -573,7 +573,7 @@ gtk_table_set_row_spacing (GtkTable *table,
{
g_return_if_fail (table != NULL);
g_return_if_fail (GTK_IS_TABLE (table));
- g_return_if_fail (row + 1 < table->nrows);
+ g_return_if_fail (row < table->nrows);
if (table->rows[row].spacing != spacing)
{
@@ -591,7 +591,7 @@ gtk_table_set_col_spacing (GtkTable *table,
{
g_return_if_fail (table != NULL);
g_return_if_fail (GTK_IS_TABLE (table));
- g_return_if_fail (column + 1 < table->ncols);
+ g_return_if_fail (column < table->ncols);
if (table->cols[column].spacing != spacing)
{
@@ -612,7 +612,7 @@ gtk_table_set_row_spacings (GtkTable *table,
g_return_if_fail (GTK_IS_TABLE (table));
table->row_spacing = spacing;
- for (row = 0; row + 1 < table->nrows; row++)
+ for (row = 0; row < table->nrows; row++)
table->rows[row].spacing = spacing;
if (GTK_WIDGET_VISIBLE (table))
@@ -629,7 +629,7 @@ gtk_table_set_col_spacings (GtkTable *table,
g_return_if_fail (GTK_IS_TABLE (table));
table->column_spacing = spacing;
- for (col = 0; col + 1 < table->ncols; col++)
+ for (col = 0; col < table->ncols; col++)
table->cols[col].spacing = spacing;
if (GTK_WIDGET_VISIBLE (table))