View Single Post
Posts: 53 | Thanked: 90 times | Joined on Nov 2009 @ Manaus, Brazil
#2
Originally Posted by shin View Post
[...] I wanted to use :
Code:
gobject.timeout_add_seconds(1, self.update)
as against
Code:
gobject.timeout_add(1000, self.update)
However when I use "gobject.timeout_add_seconds", in a desktop widget context for diablo, I get this error msg
[...]
gobject.timeout_add_seconds is not available on Diablo, because the underlying glib version (2.12.12-1osso13 according to http://maemo.org/packages/view/libglib2.0-0) does not have this function. See:

http://maemo.org/api_refs/4.1/glib2....vent-Loop.html

This function has been added in 2.14 according to:

http://library.gnome.org/devel/glib/...ut-add-seconds

That's why you will only find it on Maemo 5 (fremantle). This applies both to C and Python.
__________________
Anderson Lizardo
 

The Following 2 Users Say Thank You to lizardo For This Useful Post: