[gnome-control-center] user-accounts: Use a more specific GtkSettings object



commit 9f018a2d62de5a7311d787cb2a5868b3210ee741
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Jan 17 16:38:06 2019 +0000

    user-accounts: Use a more specific GtkSettings object
    
    Otherwise we might potentially be using the GtkSettings for the wrong
    screen, which might make a difference if one screen has animations
    enabled but another doesn’t.
    
    (This is an edge case I spotted while reading the code, but not one that
    I’ve experienced practically.)
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 panels/user-accounts/cc-user-panel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/user-accounts/cc-user-panel.c b/panels/user-accounts/cc-user-panel.c
index e1d10c5af..75b6340bc 100644
--- a/panels/user-accounts/cc-user-panel.c
+++ b/panels/user-accounts/cc-user-panel.c
@@ -289,7 +289,7 @@ reload_users (CcUserPanel *self, ActUser *selected_user)
         GtkSettings *settings;
         gboolean animations;
 
-        settings = gtk_settings_get_default ();
+        settings = gtk_widget_get_settings (GTK_WIDGET (self->carousel));
 
         g_object_get (settings, "gtk-enable-animations", &animations, NULL);
         g_object_set (settings, "gtk-enable-animations", FALSE, NULL);


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