diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 5 | ||||
-rw-r--r-- | gtk/gtktable.c | 12 |
8 files changed, 41 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Tue Jun 16 14:08:08 PDT 1998 Manish Singh <yosh@gimp.org> + + * gtk/gtktable.c: fix from TimJ for off-by-one error in table + resizing + Tue Jun 16 06:29:57 1998 Tim Janik <timj@gtk.org> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_state): check for diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index ff27632338..6cff5b39d0 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Tue Jun 16 14:08:08 PDT 1998 Manish Singh <yosh@gimp.org> + + * gtk/gtktable.c: fix from TimJ for off-by-one error in table + resizing + Tue Jun 16 06:29:57 1998 Tim Janik <timj@gtk.org> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_state): check for diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ff27632338..6cff5b39d0 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Tue Jun 16 14:08:08 PDT 1998 Manish Singh <yosh@gimp.org> + + * gtk/gtktable.c: fix from TimJ for off-by-one error in table + resizing + Tue Jun 16 06:29:57 1998 Tim Janik <timj@gtk.org> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_state): check for diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index ff27632338..6cff5b39d0 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Tue Jun 16 14:08:08 PDT 1998 Manish Singh <yosh@gimp.org> + + * gtk/gtktable.c: fix from TimJ for off-by-one error in table + resizing + Tue Jun 16 06:29:57 1998 Tim Janik <timj@gtk.org> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_state): check for diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index ff27632338..6cff5b39d0 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Tue Jun 16 14:08:08 PDT 1998 Manish Singh <yosh@gimp.org> + + * gtk/gtktable.c: fix from TimJ for off-by-one error in table + resizing + Tue Jun 16 06:29:57 1998 Tim Janik <timj@gtk.org> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_state): check for diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ff27632338..6cff5b39d0 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Tue Jun 16 14:08:08 PDT 1998 Manish Singh <yosh@gimp.org> + + * gtk/gtktable.c: fix from TimJ for off-by-one error in table + resizing + Tue Jun 16 06:29:57 1998 Tim Janik <timj@gtk.org> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_state): check for diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ff27632338..6cff5b39d0 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Tue Jun 16 14:08:08 PDT 1998 Manish Singh <yosh@gimp.org> + + * gtk/gtktable.c: fix from TimJ for off-by-one error in table + resizing + Tue Jun 16 06:29:57 1998 Tim Janik <timj@gtk.org> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_state): check for diff --git a/gtk/gtktable.c b/gtk/gtktable.c index 8d7a64dd3c..d3b3e36538 100644 --- a/gtk/gtktable.c +++ b/gtk/gtktable.c @@ -261,7 +261,7 @@ gtk_table_set_child_arg (GtkContainer *container, if (GTK_VALUE_UINT (*arg) > table_child->left_attach) table_child->right_attach = GTK_VALUE_UINT (*arg); if (table_child->right_attach >= table->ncols) - gtk_table_resize (table, table->ncols, table_child->right_attach + 1); + gtk_table_resize (table, table->ncols, table_child->right_attach); break; case CHILD_ARG_TOP_ATTACH: if (GTK_VALUE_UINT (*arg) < table_child->bottom_attach) @@ -271,7 +271,7 @@ gtk_table_set_child_arg (GtkContainer *container, if (GTK_VALUE_UINT (*arg) > table_child->top_attach) table_child->bottom_attach = GTK_VALUE_UINT (*arg); if (table_child->bottom_attach >= table->nrows) - gtk_table_resize (table, table_child->bottom_attach + 1, table->ncols); + gtk_table_resize (table, table_child->bottom_attach, table->ncols); break; case CHILD_ARG_X_OPTIONS: table_child->xexpand = (GTK_VALUE_FLAGS (*arg) & GTK_EXPAND) != 0; @@ -410,8 +410,8 @@ gtk_table_resize (GtkTable *table, child = list->data; - n_rows = MAX (n_rows, child->bottom_attach + 1); - n_cols = MAX (n_cols, child->right_attach + 1); + n_rows = MAX (n_rows, child->bottom_attach); + n_cols = MAX (n_cols, child->right_attach); } if (n_rows != table->nrows) @@ -482,10 +482,10 @@ gtk_table_attach (GtkTable *table, g_return_if_fail (top_attach < bottom_attach); if (right_attach >= table->ncols) - gtk_table_resize (table, table->nrows, right_attach + 1); + gtk_table_resize (table, table->nrows, right_attach); if (bottom_attach >= table->nrows) - gtk_table_resize (table, bottom_attach + 1, table->ncols); + gtk_table_resize (table, bottom_attach, table->ncols); table_child = g_new (GtkTableChild, 1); table_child->widget = child; |