[gnome-settings-daemon] orientation: Fix screen lock not getting applied



commit 554108117f975f68dc4588c8b0a7f58a0d2ea5c1
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Sun Aug 2 20:46:39 2015 +0200

    orientation: Fix screen lock not getting applied
    
    Read value after connecting to changed:: signal, as it's a requirement
    for the signal to be emitted at all.
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=750257 for details.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753155

 plugins/orientation/gsd-orientation-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/orientation/gsd-orientation-manager.c b/plugins/orientation/gsd-orientation-manager.c
index 464d622..8b10394 100644
--- a/plugins/orientation/gsd-orientation-manager.c
+++ b/plugins/orientation/gsd-orientation-manager.c
@@ -381,9 +381,9 @@ gsd_orientation_manager_start (GsdOrientationManager  *manager,
         gnome_settings_profile_start (NULL);
 
         manager->priv->settings = g_settings_new (CONF_SCHEMA);
-        manager->priv->orientation_lock = g_settings_get_boolean (manager->priv->settings, 
ORIENTATION_LOCK_KEY);
         g_signal_connect (G_OBJECT (manager->priv->settings), "changed::" ORIENTATION_LOCK_KEY,
                           G_CALLBACK (orientation_lock_changed_cb), manager);
+        manager->priv->orientation_lock = g_settings_get_boolean (manager->priv->settings, 
ORIENTATION_LOCK_KEY);
 
         manager->priv->session_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
 



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