popover: Use getter for gtk-enable-animations

This commit is contained in:
Matthias Clasen 2016-05-01 00:39:03 -04:00
parent e502702dd4
commit 9d038df7de

View File

@ -111,6 +111,7 @@
#include "gtkroundedboxprivate.h"
#include "gtkstylecontextprivate.h"
#include "gtkprogresstrackerprivate.h"
#include "gtksettingsprivate.h"
#ifdef GDK_WINDOWING_WAYLAND
#include "wayland/gdkwayland.h"
@ -289,13 +290,9 @@ static gboolean
transitions_enabled (GtkPopover *popover)
{
GtkPopoverPrivate *priv = popover->priv;
gboolean animations_enabled;
g_object_get (gtk_widget_get_settings (GTK_WIDGET (popover)),
"gtk-enable-animations", &animations_enabled,
NULL);
return animations_enabled && priv->transitions_enabled;
return gtk_settings_get_enable_animations (gtk_widget_get_settings (GTK_WIDGET (popover))) &&
priv->transitions_enabled;
}
static void