diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:47:15 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:47:15 +0800 |
commit | f154530d5eb65cbe2f1af899e0b30d7b665f7575 (patch) | |
tree | d430eb39a13185985876f778bf627bb788db2d3b /python | |
parent | 04632e685717adae2f35e8e2daf5345d035c5320 (diff) | |
download | gsoc2013-empathy-f154530d5eb65cbe2f1af899e0b30d7b665f7575.tar.gz gsoc2013-empathy-f154530d5eb65cbe2f1af899e0b30d7b665f7575.tar.zst gsoc2013-empathy-f154530d5eb65cbe2f1af899e0b30d7b665f7575.zip |
Update python bindings.
svn path=/trunk/; revision=2049
Diffstat (limited to 'python')
-rw-r--r-- | python/pyempathy/pyempathy.defs | 53 | ||||
-rw-r--r-- | python/pyempathygtk/pyempathygtk.defs | 8 | ||||
-rwxr-xr-x | python/update-binding.sh | 1 |
3 files changed, 43 insertions, 19 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index 918df4711..1cf0b69dd 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -1,5 +1,12 @@ ;; -*- scheme -*- ; object definitions ... +(define-object AccountManager + (in-module "Empathy") + (parent "GObject") + (c-name "EmpathyAccountManager") + (gtype-id "EMPATHY_TYPE_ACCOUNT_MANAGER") +) + (define-object Chatroom (in-module "Empathy") (parent "GObject") @@ -212,6 +219,33 @@ ) +;; From empathy-account-manager.h + +(define-function account_manager_get_type + (c-name "empathy_account_manager_get_type") + (return-type "GType") +) + +(define-function account_manager_new + (c-name "empathy_account_manager_new") + (is-constructor-of "EmpathyAccountManager") + (return-type "EmpathyAccountManager*") +) + +(define-method get_connected_accounts + (of-object "EmpathyAccountManager") + (c-name "empathy_account_manager_get_connected_accounts") + (return-type "int") +) + +(define-method get_connecting_accounts + (of-object "EmpathyAccountManager") + (c-name "empathy_account_manager_get_connecting_accounts") + (return-type "int") +) + + + ;; From empathy-chatroom.h (define-function chatroom_get_type @@ -2396,25 +2430,6 @@ ) ) -(define-function connect_to_account_status_changed - (c-name "empathy_connect_to_account_status_changed") - (return-type "gpointer") - (parameters - '("MissionControl*" "mc") - '("GCallback" "handler") - '("gpointer" "user_data") - '("GClosureNotify" "free_func") - ) -) - -(define-function disconnect_account_status_changed - (c-name "empathy_disconnect_account_status_changed") - (return-type "none") - (parameters - '("gpointer" "token") - ) -) - (define-function proxy_equal (c-name "empathy_proxy_equal") (return-type "gboolean") diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index 9e4c95008..18941abae 100644 --- a/python/pyempathygtk/pyempathygtk.defs +++ b/python/pyempathygtk/pyempathygtk.defs @@ -1727,4 +1727,12 @@ ) ) +(define-function sound_pref_is_enabled + (c-name "empathy_sound_pref_is_enabled") + (return-type "gboolean") + (parameters + '("const-char*" "key") + ) +) + diff --git a/python/update-binding.sh b/python/update-binding.sh index 685f63471..3d19d9b28 100755 --- a/python/update-binding.sh +++ b/python/update-binding.sh @@ -5,6 +5,7 @@ cd ../libempathy python /usr/share/pygobject/2.0/codegen/h2def.py \ -m empathy \ + empathy-account-manager.h \ empathy-chatroom.h \ empathy-chatroom-manager.h \ empathy-contact.h \ |