aboutsummaryrefslogtreecommitdiffstats
path: root/python/pyempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-28 01:34:44 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-28 01:34:44 +0800
commit891dd64e17fe816e6bab0b1e1d3ea35eb61a2e35 (patch)
treeff5389343502b4121a6eebb5496edb6d83d52245 /python/pyempathy
parent1403c791daa33f39c3dc86917c2f133ced2ae8f4 (diff)
downloadgsoc2013-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/pyempathy')
-rw-r--r--python/pyempathy/pyempathy.defs91
-rw-r--r--python/pyempathy/pyempathy.override1
2 files changed, 50 insertions, 42 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"