Add the entire draw_data_list back to the free list, not just the last

Sat Feb  6 11:20:16 1999  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_idle_draw): Add the
	entire draw_data_list back to the free list, not
	just the last element.
This commit is contained in:
Owen Taylor 1999-02-06 16:14:45 +00:00 committed by Owen Taylor
parent c13e6db019
commit 39e2943650
8 changed files with 50 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Sat Feb 6 11:20:16 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_idle_draw): Add the
entire draw_data_list back to the free list, not
just the last element.
Sat Feb 6 00:21:14 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row):

View File

@ -1,3 +1,9 @@
Sat Feb 6 11:20:16 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_idle_draw): Add the
entire draw_data_list back to the free list, not
just the last element.
Sat Feb 6 00:21:14 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row):

View File

@ -1,3 +1,9 @@
Sat Feb 6 11:20:16 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_idle_draw): Add the
entire draw_data_list back to the free list, not
just the last element.
Sat Feb 6 00:21:14 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row):

View File

@ -1,3 +1,9 @@
Sat Feb 6 11:20:16 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_idle_draw): Add the
entire draw_data_list back to the free list, not
just the last element.
Sat Feb 6 00:21:14 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row):

View File

@ -1,3 +1,9 @@
Sat Feb 6 11:20:16 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_idle_draw): Add the
entire draw_data_list back to the free list, not
just the last element.
Sat Feb 6 00:21:14 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row):

View File

@ -1,3 +1,9 @@
Sat Feb 6 11:20:16 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_idle_draw): Add the
entire draw_data_list back to the free list, not
just the last element.
Sat Feb 6 00:21:14 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row):

View File

@ -1,3 +1,9 @@
Sat Feb 6 11:20:16 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_idle_draw): Add the
entire draw_data_list back to the free list, not
just the last element.
Sat Feb 6 00:21:14 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row):

View File

@ -2205,6 +2205,8 @@ gtk_widget_idle_draw (gpointer cb_data)
while (widget_list)
{
GSList *tmp_list;
widget = widget_list->data;
draw_data_list = gtk_object_get_data_by_id (GTK_OBJECT (widget),
draw_data_tmp_key_id);
@ -2212,17 +2214,18 @@ gtk_widget_idle_draw (gpointer cb_data)
draw_data_tmp_key_id,
NULL);
while (draw_data_list)
tmp_list = draw_data_list;
while (tmp_list)
{
GtkDrawData *data = draw_data_list->data;
GtkDrawData *data = tmp_list->data;
if ((data->rect.width != 0) || (data->rect.height != 0))
gtk_widget_draw (widget, &data->rect);
if (draw_data_list->next)
draw_data_list = draw_data_list->next;
if (tmp_list->next)
tmp_list = tmp_list->next;
else
{
draw_data_list->next = draw_data_free_list;
tmp_list->next = draw_data_free_list;
draw_data_free_list = draw_data_list;
break;
}