Fixed get account c-structure on Protocol class.
[python-purple] / purple.pyx
index c91acdc..5d87af3 100644 (file)
@@ -82,6 +82,10 @@ cdef class Purple:
         # adds glib iteration inside ecore main loop
         ecore.timer_add(0.001, self.__glib_iteration_when_idle)
 
         # adds glib iteration inside ecore main loop
         ecore.timer_add(0.001, self.__glib_iteration_when_idle)
 
+    def __get_ui_name(self):
+        return __APP_NAME__
+    ui_name = property(__get_ui_name)
+
     def destroy(self):
         core.c_purple_core_quit()
 
     def destroy(self):
         core.c_purple_core_quit()
 
@@ -369,12 +373,13 @@ cdef class Purple:
                 protocol_id = <char *> account.purple_account_get_protocol_id(acc)
 
                 if username != NULL and protocol_id != NULL:
                 protocol_id = <char *> account.purple_account_get_protocol_id(acc)
 
                 if username != NULL and protocol_id != NULL:
-                    account_list.append(Account(username, protocol_id))
+                    account_list.append(Account(self, username, protocol_id))
             iter = iter.next
 
         return account_list
 
             iter = iter.next
 
         return account_list
 
-include "plugin.pyx"
+include "protocol.pyx"
+#include "plugin.pyx"
 include "proxy.pyx"
 #include "protocol.pyx"
 include "account.pyx"
 include "proxy.pyx"
 #include "protocol.pyx"
 include "account.pyx"