[gtk+] css: Use a getter for the enable-animations setting



commit e5de6dd8b13c62a9a4cea65f223ed963c8537c8d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 30 22:00:35 2016 -0400

    css: Use a getter for the enable-animations setting

 gtk/gtkcsswidgetnode.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c
index 614ce05..294734e 100644
--- a/gtk/gtkcsswidgetnode.c
+++ b/gtk/gtkcsswidgetnode.c
@@ -257,15 +257,11 @@ static GdkFrameClock *
 gtk_css_widget_node_get_frame_clock (GtkCssNode *node)
 {
   GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
-  gboolean animate;
 
   if (widget_node->widget == NULL)
     return NULL;
 
-  g_object_get (gtk_widget_get_settings (widget_node->widget),
-                "gtk-enable-animations", &animate,
-                NULL);
-  if (animate == FALSE)
+  if (!gtk_settings_get_enable_animations (gtk_widget_get_settings (widget_node->widget)))
     return NULL;
 
   return gtk_widget_get_frame_clock (widget_node->widget);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]