summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2010-08-12 11:59:59 -0400
committerLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2010-08-12 11:59:59 -0400
commit09f5106d656fa902a77b2ae029ab5063efa6e1a7 (patch)
tree56edf2ae5b3121c6776ab8482c19b75f7f1cf269 /test.py
parentcaaa717613f6119878acc72c2ad9a4c4e9bce9de (diff)
use timeout_add_seconds instead of timeout_add where possible
It's supposed to improve a little bit perfermance (less wake-ups)
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.py b/test.py
index f75eb12..453f458 100755
--- a/test.py
+++ b/test.py
@@ -38,14 +38,14 @@ class ClientEvents(papyon.event.ClientEventInterface):
for contact in self._client.address_book.contacts:
print contact
#self._client.profile.personal_message = "Testing papyon, and freeing the pandas!"
- gobject.timeout_add(5000, self._client.start_conversation)
+ gobject.timeout_add_seconds(5, self._client.start_conversation)
def on_client_error(self, error_type, error):
print "ERROR :", error_type, " ->", error
class AnnoyingConversation(papyon.event.ConversationEventInterface):
def on_conversation_user_joined(self, contact):
- gobject.timeout_add(5000, self.annoy_user)
+ gobject.timeout_add_seconds(5, self.annoy_user)
def annoy_user(self):
msg = "Let's free the pandas ! (testing papyon)"