mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
always spread out the extra space allocated for the homogeneous case, as
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org> * gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out the extra space allocated for the homogeneous case, as we don't properly deal with readjusting table allocation within it. (for this purpose, a GtkAlignment can be used as table parent).
This commit is contained in:
parent
c823b8f6fd
commit
1cc88c4cf8
@ -1,3 +1,10 @@
|
||||
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
|
||||
the extra space allocated for the homogeneous case, as we don't
|
||||
properly deal with readjusting table allocation within it. (for this
|
||||
purpose, a GtkAlignment can be used as table parent).
|
||||
|
||||
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
|
||||
|
@ -1,3 +1,10 @@
|
||||
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
|
||||
the extra space allocated for the homogeneous case, as we don't
|
||||
properly deal with readjusting table allocation within it. (for this
|
||||
purpose, a GtkAlignment can be used as table parent).
|
||||
|
||||
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
|
||||
|
@ -1,3 +1,10 @@
|
||||
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
|
||||
the extra space allocated for the homogeneous case, as we don't
|
||||
properly deal with readjusting table allocation within it. (for this
|
||||
purpose, a GtkAlignment can be used as table parent).
|
||||
|
||||
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
|
||||
|
@ -1,3 +1,10 @@
|
||||
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
|
||||
the extra space allocated for the homogeneous case, as we don't
|
||||
properly deal with readjusting table allocation within it. (for this
|
||||
purpose, a GtkAlignment can be used as table parent).
|
||||
|
||||
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
|
||||
|
@ -1,3 +1,10 @@
|
||||
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
|
||||
the extra space allocated for the homogeneous case, as we don't
|
||||
properly deal with readjusting table allocation within it. (for this
|
||||
purpose, a GtkAlignment can be used as table parent).
|
||||
|
||||
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
|
||||
|
@ -1,3 +1,10 @@
|
||||
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
|
||||
the extra space allocated for the homogeneous case, as we don't
|
||||
properly deal with readjusting table allocation within it. (for this
|
||||
purpose, a GtkAlignment can be used as table parent).
|
||||
|
||||
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
|
||||
|
@ -1,3 +1,10 @@
|
||||
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
|
||||
the extra space allocated for the homogeneous case, as we don't
|
||||
properly deal with readjusting table allocation within it. (for this
|
||||
purpose, a GtkAlignment can be used as table parent).
|
||||
|
||||
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
|
||||
|
@ -1334,16 +1334,6 @@ gtk_table_size_allocate_pass1 (GtkTable *table)
|
||||
real_height = GTK_WIDGET (table)->allocation.height - GTK_CONTAINER (table)->border_width * 2;
|
||||
|
||||
if (table->homogeneous)
|
||||
{
|
||||
nexpand = 0;
|
||||
for (col = 0; col < table->ncols; col++)
|
||||
if (table->cols[col].expand)
|
||||
{
|
||||
nexpand += 1;
|
||||
break;
|
||||
}
|
||||
|
||||
if (nexpand > 0)
|
||||
{
|
||||
width = real_width;
|
||||
|
||||
@ -1357,7 +1347,6 @@ gtk_table_size_allocate_pass1 (GtkTable *table)
|
||||
width -= extra;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
width = 0;
|
||||
@ -1422,16 +1411,6 @@ gtk_table_size_allocate_pass1 (GtkTable *table)
|
||||
}
|
||||
|
||||
if (table->homogeneous)
|
||||
{
|
||||
nexpand = 0;
|
||||
for (row = 0; row < table->nrows; row++)
|
||||
if (table->rows[row].expand)
|
||||
{
|
||||
nexpand += 1;
|
||||
break;
|
||||
}
|
||||
|
||||
if (nexpand > 0)
|
||||
{
|
||||
height = real_height;
|
||||
|
||||
@ -1446,7 +1425,6 @@ gtk_table_size_allocate_pass1 (GtkTable *table)
|
||||
height -= extra;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
height = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user