g_timeout_add_seconds() deleted from eventloop_ui struct
[python-purple] / buddy.pyx
index 33d36b7..8137d26 100644 (file)
--- a/buddy.pyx
+++ b/buddy.pyx
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport blist
+cimport purple
 
 cdef class Buddy:
     """ Buddy class """
     cdef blist.PurpleBuddy *__buddy
 
 
 cdef class Buddy:
     """ Buddy class """
     cdef blist.PurpleBuddy *__buddy
 
-    def __cinit__(self):
+    def __init__(self):
         self.__buddy = NULL
 
     def new_buddy(self, acc, char *scr, char *alias):
         self.__buddy = blist.c_purple_buddy_new(<account.PurpleAccount *>acc.__account, scr, alias)
 
     def get_alias(self):
         self.__buddy = NULL
 
     def new_buddy(self, acc, char *scr, char *alias):
         self.__buddy = blist.c_purple_buddy_new(<account.PurpleAccount *>acc.__account, scr, alias)
 
     def get_alias(self):
-        return blist.c_purple_buddy_get_alias_only(self.__buddy)
+        return <char *>blist.c_purple_buddy_get_alias_only(self.__buddy)
 
     def get_name(self):
 
     def get_name(self):
-        return blist.c_purple_buddy_get_name(self.__buddy)
+        return <char *>blist.c_purple_buddy_get_name(self.__buddy)