diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-09-22 01:22:56 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-09-22 01:32:40 +0800 |
commit | 06d54b8496a7878bcc98b59ac74da61bac816735 (patch) | |
tree | 1bf5d0c4badba6f2f30ce52269c532b6592f69d9 /python/pyempathy | |
parent | 387058612889428532f1c7f6a9792e0d4aa7f1e5 (diff) | |
download | gsoc2013-empathy-06d54b8496a7878bcc98b59ac74da61bac816735.tar gsoc2013-empathy-06d54b8496a7878bcc98b59ac74da61bac816735.tar.gz gsoc2013-empathy-06d54b8496a7878bcc98b59ac74da61bac816735.tar.bz2 gsoc2013-empathy-06d54b8496a7878bcc98b59ac74da61bac816735.tar.lz gsoc2013-empathy-06d54b8496a7878bcc98b59ac74da61bac816735.tar.xz gsoc2013-empathy-06d54b8496a7878bcc98b59ac74da61bac816735.tar.zst gsoc2013-empathy-06d54b8496a7878bcc98b59ac74da61bac816735.zip |
Update python bindings
Diffstat (limited to 'python/pyempathy')
-rw-r--r-- | python/pyempathy/pyempathy.defs | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index a43f5254b..a6d5db8bb 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -540,6 +540,27 @@ (return-type "gchar*") ) +(define-method set_icon_name_async + (of-object "EmpathyAccountSettings") + (c-name "empathy_account_settings_set_icon_name_async") + (return-type "none") + (parameters + '("const-gchar*" "name") + '("GAsyncReadyCallback" "callback") + '("gpointer" "user_data") + ) +) + +(define-method set_icon_name_finish + (of-object "EmpathyAccountSettings") + (c-name "empathy_account_settings_set_icon_name_finish") + (return-type "gboolean") + (parameters + '("GAsyncResult*" "result") + '("GError**" "error") + ) +) + (define-method get_display_name (of-object "EmpathyAccountSettings") (c-name "empathy_account_settings_get_display_name") @@ -674,6 +695,26 @@ ) ) +(define-method reconnect_async + (of-object "EmpathyAccount") + (c-name "empathy_account_reconnect_async") + (return-type "none") + (parameters + '("GAsyncReadyCallback" "callback") + '("gpointer" "user_data") + ) +) + +(define-method reconnect_finish + (of-object "EmpathyAccount") + (c-name "empathy_account_reconnect_finish") + (return-type "gboolean") + (parameters + '("GAsyncResult*" "result") + '("GError**" "error") + ) +) + (define-method is_enabled (of-object "EmpathyAccount") (c-name "empathy_account_is_enabled") @@ -755,6 +796,27 @@ ) ) +(define-method set_icon_name_async + (of-object "EmpathyAccount") + (c-name "empathy_account_set_icon_name_async") + (return-type "none") + (parameters + '("const-gchar*" "icon_name") + '("GAsyncReadyCallback" "callback") + '("gpointer" "user_data") + ) +) + +(define-method set_icon_name_finish + (of-object "EmpathyAccount") + (c-name "empathy_account_set_icon_name_finish") + (return-type "gboolean") + (parameters + '("GAsyncResult*" "result") + '("GError**" "error") + ) +) + (define-function account_new (c-name "empathy_account_new") (is-constructor-of "EmpathyAccount") @@ -2037,6 +2099,37 @@ (varargs #t) ) +(define-function dispatcher_new + (c-name "empathy_dispatcher_new") + (is-constructor-of "EmpathyDispatcher") + (return-type "EmpathyDispatcher*") + (parameters + '("const-gchar*" "name") + '("GPtrArray*" "filters") + '("GStrv" "capabilities") + ) +) + +(define-method add_handler + (of-object "EmpathyDispatcher") + (c-name "empathy_dispatcher_add_handler") + (return-type "EmpathyHandler*") + (parameters + '("const-gchar*" "name") + '("GPtrArray*" "filters") + '("GStrv" "capabilities") + ) +) + +(define-method remove_handler + (of-object "EmpathyDispatcher") + (c-name "empathy_dispatcher_remove_handler") + (return-type "none") + (parameters + '("EmpathyHandler*" "handler") + ) +) + (define-function dispatcher_dup_singleton (c-name "empathy_dispatcher_dup_singleton") (return-type "EmpathyDispatcher*") @@ -2765,6 +2858,14 @@ (return-type "GType") ) +(define-function message_new_from_entry + (c-name "empathy_message_new_from_entry") + (return-type "EmpathyMessage*") + (parameters + '("const-gchar*" "message") + ) +) + (define-function message_new (c-name "empathy_message_new") (is-constructor-of "EmpathyMessage") @@ -2864,6 +2965,21 @@ ) ) +(define-method is_incoming + (of-object "EmpathyMessage") + (c-name "empathy_message_is_incoming") + (return-type "gboolean") +) + +(define-method set_incoming + (of-object "EmpathyMessage") + (c-name "empathy_message_set_incoming") + (return-type "none") + (parameters + '("gboolean" "incoming") + ) +) + (define-method should_highlight (of-object "EmpathyMessage") (c-name "empathy_message_should_highlight") |