diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-05-28 01:34:44 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-05-28 01:34:44 +0800 |
commit | 891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35 (patch) | |
tree | ff5389343502b4121a6eebb5496edb6d83d52245 /python | |
parent | 1403c791daa33f39c3dc86917c2f133ced2ae8f4 (diff) | |
download | gsoc2013-empathy-891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35.tar gsoc2013-empathy-891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35.tar.gz gsoc2013-empathy-891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35.tar.bz2 gsoc2013-empathy-891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35.tar.lz gsoc2013-empathy-891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35.tar.xz gsoc2013-empathy-891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35.tar.zst gsoc2013-empathy-891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35.zip |
Move avatar cache to ~/.cache and don't mix avatar from different contacts, tokens are not garanteed to be different.
svn path=/trunk/; revision=1128
Diffstat (limited to 'python')
-rw-r--r-- | python/pyempathy/pyempathy.defs | 91 | ||||
-rw-r--r-- | python/pyempathy/pyempathy.override | 1 | ||||
-rwxr-xr-x | python/update-binding.sh | 1 |
3 files changed, 50 insertions, 43 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index 45e347175..2c3e8d20b 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -217,47 +217,6 @@ ) -;; From empathy-avatar.h - -(define-function empathy_avatar_get_type - (c-name "empathy_avatar_get_type") - (return-type "GType") -) - -(define-function empathy_avatar_new - (c-name "empathy_avatar_new") - (is-constructor-of "EmpathyAvatar") - (return-type "EmpathyAvatar*") - (parameters - '("const-guchar*" "avatar") - '("const-gsize" "len") - '("const-gchar*" "format") - '("const-gchar*" "token") - ) -) - -(define-function empathy_avatar_new_from_cache - (c-name "empathy_avatar_new_from_cache") - (return-type "EmpathyAvatar*") - (parameters - '("const-gchar*" "token") - ) -) - -(define-method ref - (of-object "EmpathyAvatar") - (c-name "empathy_avatar_ref") - (return-type "EmpathyAvatar*") -) - -(define-method unref - (of-object "EmpathyAvatar") - (c-name "empathy_avatar_unref") - (return-type "none") -) - - - ;; From empathy-time.h (define-function empathy_time_get_current @@ -1099,6 +1058,56 @@ ) ) +(define-method load_avatar_data + (of-object "EmpathyContact") + (c-name "empathy_contact_load_avatar_data") + (return-type "none") + (parameters + '("const-guchar*" "data") + '("const-gsize" "len") + '("const-gchar*" "format") + '("const-gchar*" "token") + ) +) + +(define-method load_avatar_cache + (of-object "EmpathyContact") + (c-name "empathy_contact_load_avatar_cache") + (return-type "gboolean") + (parameters + '("const-gchar*" "token") + ) +) + +(define-function empathy_avatar_get_type + (c-name "empathy_avatar_get_type") + (return-type "GType") +) + +(define-function empathy_avatar_new + (c-name "empathy_avatar_new") + (is-constructor-of "EmpathyAvatar") + (return-type "EmpathyAvatar*") + (parameters + '("guchar*" "data") + '("gsize" "len") + '("gchar*" "format") + '("gchar*" "token") + ) +) + +(define-method ref + (of-object "EmpathyAvatar") + (c-name "empathy_avatar_ref") + (return-type "EmpathyAvatar*") +) + +(define-method unref + (of-object "EmpathyAvatar") + (c-name "empathy_avatar_unref") + (return-type "none") +) + ;; From empathy-contact-groups.h diff --git a/python/pyempathy/pyempathy.override b/python/pyempathy/pyempathy.override index 0b44a265d..169f375ad 100644 --- a/python/pyempathy/pyempathy.override +++ b/python/pyempathy/pyempathy.override @@ -2,7 +2,6 @@ headers #include <Python.h> #include <pygobject.h> -#include "empathy-avatar.h" #include "empathy-chatroom.h" #include "empathy-chatroom-manager.h" #include "empathy-contact.h" diff --git a/python/update-binding.sh b/python/update-binding.sh index d07c4d6e0..fbc5b4c79 100755 --- a/python/update-binding.sh +++ b/python/update-binding.sh @@ -4,7 +4,6 @@ # Update the list of headers from Makefile.am cd ../libempathy python /usr/share/pygtk/2.0/codegen/h2def.py \ - empathy-avatar.h \ empathy-time.h \ empathy-status-presets.h \ empathy-debug.h \ |