summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-08-04 14:55:04 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-08-04 14:55:04 +0000
commit790a6ae5b2db1b946cc6e6cc60499177f767ad9f (patch)
tree2dd9186d42570fbb631b3385ccfa462db76bbd4d
parentfb8cd9520f5194d22953a4105be6d659c8b5044c (diff)
downloadgdk-pixbuf-790a6ae5b2db1b946cc6e6cc60499177f767ad9f.tar.gz
Empty rows/columns of the table should not have been marked as being able
Tue Aug 4 10:59:19 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtktable.[ch]: Empty rows/columns of the table should not have been marked as being able to shrink. (Fixes prorlem with shrinking scrollbarless GIMP canvases)
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtktable.c43
-rw-r--r--gtk/gtktable.h1
9 files changed, 78 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 172ab4277..74ab1c79d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Aug 4 10:59:19 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktable.[ch]: Empty rows/columns of the table
+ should not have been marked as being able to shrink.
+ (Fixes prorlem with shrinking scrollbarless GIMP canvases)
+
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 172ab4277..74ab1c79d 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,9 @@
+Tue Aug 4 10:59:19 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktable.[ch]: Empty rows/columns of the table
+ should not have been marked as being able to shrink.
+ (Fixes prorlem with shrinking scrollbarless GIMP canvases)
+
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 172ab4277..74ab1c79d 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,9 @@
+Tue Aug 4 10:59:19 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktable.[ch]: Empty rows/columns of the table
+ should not have been marked as being able to shrink.
+ (Fixes prorlem with shrinking scrollbarless GIMP canvases)
+
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 172ab4277..74ab1c79d 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,9 @@
+Tue Aug 4 10:59:19 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktable.[ch]: Empty rows/columns of the table
+ should not have been marked as being able to shrink.
+ (Fixes prorlem with shrinking scrollbarless GIMP canvases)
+
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 172ab4277..74ab1c79d 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,9 @@
+Tue Aug 4 10:59:19 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktable.[ch]: Empty rows/columns of the table
+ should not have been marked as being able to shrink.
+ (Fixes prorlem with shrinking scrollbarless GIMP canvases)
+
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 172ab4277..74ab1c79d 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,9 @@
+Tue Aug 4 10:59:19 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktable.[ch]: Empty rows/columns of the table
+ should not have been marked as being able to shrink.
+ (Fixes prorlem with shrinking scrollbarless GIMP canvases)
+
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 172ab4277..74ab1c79d 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,9 @@
+Tue Aug 4 10:59:19 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktable.[ch]: Empty rows/columns of the table
+ should not have been marked as being able to shrink.
+ (Fixes prorlem with shrinking scrollbarless GIMP canvases)
+
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
diff --git a/gtk/gtktable.c b/gtk/gtktable.c
index cae41a0c6..08a27ab53 100644
--- a/gtk/gtktable.c
+++ b/gtk/gtktable.c
@@ -1071,6 +1071,7 @@ gtk_table_size_allocate_init (GtkTable *table)
table->cols[col].need_shrink = TRUE;
table->cols[col].expand = FALSE;
table->cols[col].shrink = TRUE;
+ table->cols[col].empty = TRUE;
}
for (row = 0; row < table->nrows; row++)
{
@@ -1079,6 +1080,7 @@ gtk_table_size_allocate_init (GtkTable *table)
table->rows[row].need_shrink = TRUE;
table->rows[row].expand = FALSE;
table->rows[row].shrink = TRUE;
+ table->rows[row].empty = TRUE;
}
/* Loop over all the children and adjust the row and col values
@@ -1101,6 +1103,8 @@ gtk_table_size_allocate_init (GtkTable *table)
if (!child->xshrink)
table->cols[child->left_attach].shrink = FALSE;
+
+ table->cols[child->left_attach].empty = FALSE;
}
if (child->top_attach == (child->bottom_attach - 1))
@@ -1110,6 +1114,8 @@ gtk_table_size_allocate_init (GtkTable *table)
if (!child->yshrink)
table->rows[child->top_attach].shrink = FALSE;
+
+ table->rows[child->top_attach].empty = FALSE;
}
}
}
@@ -1127,6 +1133,9 @@ gtk_table_size_allocate_init (GtkTable *table)
{
if (child->left_attach != (child->right_attach - 1))
{
+ for (col = child->left_attach; col < child->right_attach; col++)
+ table->cols[col].empty = FALSE;
+
if (child->xexpand)
{
has_expand = FALSE;
@@ -1160,6 +1169,9 @@ gtk_table_size_allocate_init (GtkTable *table)
if (child->top_attach != (child->bottom_attach - 1))
{
+ for (row = child->top_attach; row < child->bottom_attach; row++)
+ table->rows[row].empty = FALSE;
+
if (child->yexpand)
{
has_expand = FALSE;
@@ -1198,10 +1210,18 @@ gtk_table_size_allocate_init (GtkTable *table)
*/
for (col = 0; col < table->ncols; col++)
{
- if (table->cols[col].need_expand)
- table->cols[col].expand = TRUE;
- if (!table->cols[col].need_shrink)
- table->cols[col].shrink = FALSE;
+ if (table->cols[col].empty)
+ {
+ table->cols[col].expand = FALSE;
+ table->cols[col].shrink = FALSE;
+ }
+ else
+ {
+ if (table->cols[col].need_expand)
+ table->cols[col].expand = TRUE;
+ if (!table->cols[col].need_shrink)
+ table->cols[col].shrink = FALSE;
+ }
}
/* Loop over the rows and set the expand and shrink values
@@ -1209,10 +1229,17 @@ gtk_table_size_allocate_init (GtkTable *table)
*/
for (row = 0; row < table->nrows; row++)
{
- if (table->rows[row].need_expand)
- table->rows[row].expand = TRUE;
- if (!table->rows[row].need_shrink)
- table->rows[row].shrink = FALSE;
+ if (table->rows[row].empty)
+ {
+ table->rows[row].expand = FALSE;
+ table->rows[row].shrink = FALSE;
+ }
+ {
+ if (table->rows[row].need_expand)
+ table->rows[row].expand = TRUE;
+ if (!table->rows[row].need_shrink)
+ table->rows[row].shrink = FALSE;
+ }
}
}
diff --git a/gtk/gtktable.h b/gtk/gtktable.h
index 2c3d90591..e4234853f 100644
--- a/gtk/gtktable.h
+++ b/gtk/gtktable.h
@@ -87,6 +87,7 @@ struct _GtkTableRowCol
guint need_shrink : 1;
guint expand : 1;
guint shrink : 1;
+ guint empty : 1;
};