[rhythmbox] magnatune/jamendo: Use gobject.timeout_add_seconds for catalog updates
- From: Adam Zimmerman <adamz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] magnatune/jamendo: Use gobject.timeout_add_seconds for catalog updates
- Date: Thu, 25 Feb 2010 03:33:52 +0000 (UTC)
commit 2bb7822315b9b30a71520fdecf3481c2121d6012
Author: Adam Zimmerman <adamz src gnome org>
Date: Wed Feb 24 19:21:53 2010 -0800
magnatune/jamendo: Use gobject.timeout_add_seconds for catalog updates
plugins/jamendo/jamendo/JamendoSource.py | 4 ++--
plugins/magnatune/magnatune/MagnatuneSource.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/jamendo/jamendo/JamendoSource.py b/plugins/jamendo/jamendo/JamendoSource.py
index 0e2f2b0..a33369c 100644
--- a/plugins/jamendo/jamendo/JamendoSource.py
+++ b/plugins/jamendo/jamendo/JamendoSource.py
@@ -135,7 +135,7 @@ class JamendoSource(rb.BrowserSource):
self.__show_loading_screen (True)
# start our catalogue updates
- self.__update_id = gobject.timeout_add(6 * 60 * 60 * 1000, self.__update_catalogue)
+ self.__update_id = gobject.timeout_add_seconds(6 * 60 * 60, self.__update_catalogue)
self.__update_catalogue()
sort_key = gconf.client_get_default().get_string(JamendoConfigureDialog.gconf_keys['sorting'])
@@ -308,7 +308,7 @@ class JamendoSource(rb.BrowserSource):
return
gtk.show_uri(self.shell.props.window.get_screen(), result, gtk.gdk.CURRENT_TIME)
-
+
# Donate to Artist
def launch_donate (self):
tracks = self.get_entry_view().get_selected_entries()
diff --git a/plugins/magnatune/magnatune/MagnatuneSource.py b/plugins/magnatune/magnatune/MagnatuneSource.py
index 0217cc1..2ed99ad 100644
--- a/plugins/magnatune/magnatune/MagnatuneSource.py
+++ b/plugins/magnatune/magnatune/MagnatuneSource.py
@@ -142,7 +142,7 @@ class MagnatuneSource(rb.BrowserSource):
self.__show_loading_screen(True)
# start our catalogue updates
- self.__update_id = gobject.timeout_add(6 * 60 * 60 * 1000, self.__update_catalogue)
+ self.__update_id = gobject.timeout_add_seconds(6 * 60 * 60, self.__update_catalogue)
self.__update_catalogue()
self.get_entry_view().set_sorting_type(self.__client.get_string("/apps/rhythmbox/plugins/magnatune/sorting"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]