[gnome-settings-daemon] orientation: Unset source ID on idle callback



commit 17b0a43b3f7d2fe31d25a95850489bb3a869bcb7
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 10 13:54:03 2013 +0100

    orientation: Unset source ID on idle callback
    
    The idle was being removed, but the source ID was left != 0, so on
    shutdown it'd cause warnings.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719973

 plugins/orientation/gsd-orientation-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/orientation/gsd-orientation-manager.c b/plugins/orientation/gsd-orientation-manager.c
index adc693b..1d767f2 100644
--- a/plugins/orientation/gsd-orientation-manager.c
+++ b/plugins/orientation/gsd-orientation-manager.c
@@ -403,6 +403,7 @@ gsd_orientation_manager_idle_cb (GsdOrientationManager *manager)
 
         gnome_settings_profile_start (NULL);
 
+        manager->priv->start_idle_id = 0;
         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",


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