g_timeout_add_seconds() deleted from eventloop_ui struct
[python-purple] / buddy.pyx
index 9224737..8137d26 100644 (file)
--- a/buddy.pyx
+++ b/buddy.pyx
@@ -17,7 +17,7 @@
 #  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 class Buddy:
     """ Buddy class """
@@ -30,7 +30,7 @@ cdef class Buddy:
         self.__buddy = blist.c_purple_buddy_new(<account.PurpleAccount *>acc.__account, scr, alias)
 
     def get_alias(self):
         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)