]> spindle.queued.net Git - midori/commitdiff
Use a power friendly second timeout for session saving
authorChristian Dywan <christian@twotoasts.de>
Wed, 6 Oct 2010 16:31:19 +0000 (18:31 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 6 Oct 2010 16:32:03 +0000 (18:32 +0200)
midori/main.c

index 7638e07891e9ef8c50a5be4661252dac29bdf3bf..8c9e9ecde47ee7b8bed1e70ec852ae75b6c86692 100644 (file)
@@ -675,8 +675,8 @@ midori_browser_session_cb (MidoriBrowser* browser,
     if (!save_timeout)
     {
         g_object_ref (session);
-        save_timeout = g_timeout_add_full (G_PRIORITY_LOW, 5000,
-            (GSourceFunc)midori_session_save_timeout_cb, session, NULL);
+        save_timeout = g_timeout_add_seconds (5,
+            (GSourceFunc)midori_session_save_timeout_cb, session);
     }
 }