]> Pileus Git - ~andy/gtk/commitdiff
Add the entire draw_data_list back to the free list, not just the last
authorOwen Taylor <otaylor@redhat.com>
Sat, 6 Feb 1999 16:14:45 +0000 (16:14 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 6 Feb 1999 16:14:45 +0000 (16:14 +0000)
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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkwidget.c

index 8029fae544af1ba1f0e3b16f905e6a0d5b98f654..a501d41b88a04a04c79c359829d7fd4cb81d042e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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): 
index 8029fae544af1ba1f0e3b16f905e6a0d5b98f654..a501d41b88a04a04c79c359829d7fd4cb81d042e 100644 (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): 
index 8029fae544af1ba1f0e3b16f905e6a0d5b98f654..a501d41b88a04a04c79c359829d7fd4cb81d042e 100644 (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): 
index 8029fae544af1ba1f0e3b16f905e6a0d5b98f654..a501d41b88a04a04c79c359829d7fd4cb81d042e 100644 (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): 
index 8029fae544af1ba1f0e3b16f905e6a0d5b98f654..a501d41b88a04a04c79c359829d7fd4cb81d042e 100644 (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): 
index 8029fae544af1ba1f0e3b16f905e6a0d5b98f654..a501d41b88a04a04c79c359829d7fd4cb81d042e 100644 (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): 
index 8029fae544af1ba1f0e3b16f905e6a0d5b98f654..a501d41b88a04a04c79c359829d7fd4cb81d042e 100644 (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): 
index 138dcf771117fd6af007315635467d2ad6a8b746..b1d507340d1e1b13a4b39c3d79880d3533232190 100644 (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;
            }