[gnome-shell] Clear save_id when removing idle_save_application_usage()



commit d116f707c5e4b4e3f07ff5ae3db162b01b1ca11e
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Aug 18 18:02:53 2009 -0400

    Clear save_id when removing idle_save_application_usage()
    
    When we remove the timeout for saving application usage when application
    usage is disabled, set the save_id member variable to 0.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=589676

 src/shell-app-monitor.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-app-monitor.c b/src/shell-app-monitor.c
index 453a5f5..a640957 100644
--- a/src/shell-app-monitor.c
+++ b/src/shell-app-monitor.c
@@ -1657,7 +1657,10 @@ update_enable_monitoring (ShellAppMonitor *monitor)
     {
       monitor->watched_window = NULL;
       if (monitor->save_id)
-        g_source_remove (monitor->save_id);
+        {
+          g_source_remove (monitor->save_id);
+          monitor->save_id = 0;
+        }
     }
 
   monitor->enable_monitoring = enable;



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