[gtk+] stack: Use getter for gtk-enable-animations
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] stack: Use getter for gtk-enable-animations
- Date: Sun, 1 May 2016 05:12:45 +0000 (UTC)
commit df7247837539d013fd5f1231c956fd75db6c76fc
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 1 00:39:55 2016 -0400
stack: Use getter for gtk-enable-animations
gtk/gtkstack.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index f7d8da5..1136deb 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -28,6 +28,7 @@
#include "gtkcsscustomgadgetprivate.h"
#include "gtkcontainerprivate.h"
#include "gtkprogresstrackerprivate.h"
+#include "gtksettingsprivate.h"
#include "gtkwidgetprivate.h"
#include <math.h>
#include <string.h>
@@ -1008,14 +1009,9 @@ gtk_stack_start_transition (GtkStack *stack,
{
GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
GtkWidget *widget = GTK_WIDGET (stack);
- gboolean animations_enabled;
-
- g_object_get (gtk_widget_get_settings (widget),
- "gtk-enable-animations", &animations_enabled,
- NULL);
if (gtk_widget_get_mapped (widget) &&
- animations_enabled &&
+ gtk_settings_get_enable_animations (gtk_widget_get_settings (widget)) &&
transition_type != GTK_STACK_TRANSITION_TYPE_NONE &&
transition_duration != 0 &&
priv->last_visible_child != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]