[gtk+] treeview: Use getter for gtk-enable-animations
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Use getter for gtk-enable-animations
- Date: Sun, 1 May 2016 05:12:55 +0000 (UTC)
commit 449732446bf85831290c9276eb407eb2e0e9bce0
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 1 00:40:23 2016 -0400
treeview: Use getter for gtk-enable-animations
gtk/gtktreeview.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index dfa9232..757e072 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -52,7 +52,7 @@
#include "gtkcssrgbavalueprivate.h"
#include "gtktypebuiltins.h"
#include "gtkmain.h"
-#include "gtksettings.h"
+#include "gtksettingsprivate.h"
#include "gtkwidgetpath.h"
#include "gtkpixelcacheprivate.h"
#include "a11y/gtktreeviewaccessibleprivate.h"
@@ -12776,9 +12776,7 @@ gtk_tree_view_real_expand_row (GtkTreeView *tree_view,
gboolean expand;
if (animate)
- g_object_get (gtk_widget_get_settings (GTK_WIDGET (tree_view)),
- "gtk-enable-animations", &animate,
- NULL);
+ animate = gtk_settings_get_enable_animations (gtk_widget_get_settings (GTK_WIDGET (tree_view)));
remove_auto_expand_timeout (tree_view);
@@ -12908,9 +12906,7 @@ gtk_tree_view_real_collapse_row (GtkTreeView *tree_view,
gboolean selection_changed, cursor_changed;
if (animate)
- g_object_get (gtk_widget_get_settings (GTK_WIDGET (tree_view)),
- "gtk-enable-animations", &animate,
- NULL);
+ animate = gtk_settings_get_enable_animations (gtk_widget_get_settings (GTK_WIDGET (tree_view)));
remove_auto_expand_timeout (tree_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]