Index: gtk/gtktreeview.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktreeview.c,v
retrieving revision 1.512
diff -u -p -r1.512 gtktreeview.c
--- gtk/gtktreeview.c	4 Jan 2006 07:06:12 -0000	1.512
+++ gtk/gtktreeview.c	12 Jan 2006 11:28:50 -0000
@@ -10740,6 +10740,11 @@ gtk_tree_view_real_expand_row (GtkTreeVi
   GtkTreeIter temp;
   gboolean expand;
 
+  if (animate)
+    g_object_get (gtk_widget_get_settings (GTK_WIDGET (tree_view)),
+                  "gtk-enable-animations", &animate,
+                  NULL);
+
   remove_auto_expand_timeout (tree_view);
 
   if (node->children && !open_all)
@@ -10884,6 +10889,11 @@ gtk_tree_view_real_collapse_row (GtkTree
   gint x, y;
   GList *list;
   GdkWindow *child, *parent;
+
+  if (animate)
+    g_object_get (gtk_widget_get_settings (GTK_WIDGET (tree_view)),
+                  "gtk-enable-animations", &animate,
+                  NULL);
 
   remove_auto_expand_timeout (tree_view);
 
