Commit 19454762 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer
Browse files

skip the animation if the gtk-enable-animations setting is FALSE (bug

2006-01-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
	animation if the gtk-enable-animations setting is FALSE
	(bug #142582).
parent 5c62a90e
2006-01-12 Michael Natterer <mitch@imendio.com>
* gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
animation if the gtk-enable-animations setting is FALSE
(bug #142582).
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
......
2006-01-12 Michael Natterer <mitch@imendio.com>
* gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
animation if the gtk-enable-animations setting is FALSE
(bug #142582).
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
......
......@@ -1307,13 +1307,18 @@ gtk_expander_set_expanded (GtkExpander *expander,
if (priv->expanded != expanded)
{
GtkSettings *settings = gtk_widget_get_settings (GTK_WIDGET (expander));
gboolean enable_animations;
priv->expanded = expanded;
if (GTK_WIDGET_REALIZED (expander))
g_object_get (settings, "gtk-enable-animations", &enable_animations, NULL);
if (enable_animations && GTK_WIDGET_REALIZED (expander))
{
gtk_expander_start_animation (expander);
}
else
else
{
priv->expander_style = expanded ? GTK_EXPANDER_EXPANDED :
GTK_EXPANDER_COLLAPSED;
......
Markdown is supported
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