forked from AuroraMiddleware/gtk
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).
This commit is contained in:
parent
5c62a90e38
commit
1945476285
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -1,3 +1,9 @@
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user