diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-01-14 06:04:55 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-01-14 06:04:55 +0000 |
commit | 467e0fcb24cc2ddb78b4251ff587c3269f578563 (patch) | |
tree | 15de3d3cbd74ad8074d363d1a9e84a31b71357cc /gtk/gtktable.c | |
parent | c8ae0b92cae360316fe30f40e738bdf5a93c31b9 (diff) | |
download | gtk+-467e0fcb24cc2ddb78b4251ff587c3269f578563.tar.gz |
gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c gtk/gtkframe.c
Wed Jan 13 22:34:29 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c
gtk/gtkframe.c gtk/gtk[hv]box.c gtk[hv]paned.c gtk/gtklist.c
gtkmenu.c gtkmenuitem.c gtkmenubar.c gtknotebook.c
gtk/gtkscrolledwindow.c gtk/gtktable.c gtk/gtktree.c
gtk/gtktreeeitem.c gtk/gtkviewport.c
Fix up comparisons of signed and unsigned ints to avoid
assigning negative widths/heigths.
Diffstat (limited to 'gtk/gtktable.c')
-rw-r--r-- | gtk/gtktable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktable.c b/gtk/gtktable.c index d47fe498f9..f3e5aca30d 100644 --- a/gtk/gtktable.c +++ b/gtk/gtktable.c @@ -1348,7 +1348,7 @@ gtk_table_size_allocate_pass1 (GtkTable *table) if (table->cols[col].shrink) { extra = width / nshrink; - table->cols[col].allocation = MAX (1, table->cols[col].allocation - extra); + table->cols[col].allocation = MAX (1, (gint)table->cols[col].allocation - extra); width -= extra; nshrink -= 1; @@ -1426,7 +1426,7 @@ gtk_table_size_allocate_pass1 (GtkTable *table) if (table->rows[row].shrink) { extra = height / nshrink; - table->rows[row].allocation = MAX (1, table->rows[row].allocation - extra); + table->rows[row].allocation = MAX (1, (gint)table->rows[row].allocation - extra); height -= extra; nshrink -= 1; @@ -1487,7 +1487,7 @@ gtk_table_size_allocate_pass2 (GtkTable *table) if (child->xfill) { - allocation.width = MAX (1, max_width - child->xpadding * 2); + allocation.width = MAX (1, max_width - (gint)child->xpadding * 2); allocation.x = x + (max_width - allocation.width) / 2; } else @@ -1498,7 +1498,7 @@ gtk_table_size_allocate_pass2 (GtkTable *table) if (child->yfill) { - allocation.height = MAX (1, max_height - child->ypadding * 2); + allocation.height = MAX (1, max_height - (gint)child->ypadding * 2); allocation.y = y + (max_height - allocation.height) / 2; } else |