Commit 39e29436 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

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.
parent c13e6db0
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment