[gnome-music] replace timeout with idle



commit 6c8bc6c300f795ec2c3f5608361b34ce5c4b607b
Author: Seif Lotfy <seif lotfy com>
Date:   Tue Apr 30 13:49:17 2013 +0200

    replace timeout with idle

 src/player.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index da286b4..9d93f5f 100644
--- a/src/player.js
+++ b/src/player.js
@@ -97,7 +97,7 @@ const Player = new Lang.Class({
         this.player = Gst.ElementFactory.make("playbin", "player");
         this.player.connect("about-to-finish", Lang.bind(this,
             function() {
-                GLib.timeout_add(GLib.PRIORITY_DEFAULT, 1000, Lang.bind(this, 
+                GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, 
                  function() {
                     if (this.timeout) {
                         GLib.source_remove(this.timeout);


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