summaryrefslogtreecommitdiff
path: root/gtk/gtktable.c
diff options
context:
space:
mode:
authorChema Celorio <chema@celorio.com>2001-08-26 04:01:27 +0000
committerJose Maria Celorio <chema@src.gnome.org>2001-08-26 04:01:27 +0000
commite0e34e59eacae0cdb9f78a93c1c4bb2c77f0993b (patch)
tree81c3d7aebedd6db4f56d8e13ff692998fa92f3af /gtk/gtktable.c
parenteae09f4d837a4650a71b9adb26de0db08a71d440 (diff)
downloadgdk-pixbuf-e0e34e59eacae0cdb9f78a93c1c4bb2c77f0993b.tar.gz
pass ->nrows to gtk_table_resize as the first argument for
2001-08-25 Chema Celorio <chema@celorio.com> * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
Diffstat (limited to 'gtk/gtktable.c')
-rw-r--r--gtk/gtktable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktable.c b/gtk/gtktable.c
index e85f122d4..f1696a7fa 100644
--- a/gtk/gtktable.c
+++ b/gtk/gtktable.c
@@ -340,14 +340,14 @@ gtk_table_set_child_property (GtkContainer *container,
if (table_child->right_attach <= table_child->left_attach)
table_child->right_attach = table_child->left_attach + 1;
if (table_child->right_attach >= table->ncols)
- gtk_table_resize (table, table->ncols, table_child->right_attach);
+ gtk_table_resize (table, table->nrows, table_child->right_attach);
break;
case CHILD_PROP_RIGHT_ATTACH:
table_child->right_attach = g_value_get_uint (value);
if (table_child->right_attach <= table_child->left_attach)
table_child->left_attach = table_child->right_attach - 1;
if (table_child->right_attach >= table->ncols)
- gtk_table_resize (table, table->ncols, table_child->right_attach);
+ gtk_table_resize (table, table->nrows, table_child->right_attach);
break;
case CHILD_PROP_TOP_ATTACH:
table_child->top_attach = g_value_get_uint (value);