aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-avatar-chooser.h
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-07-27 21:20:16 +0800
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-07-30 14:56:45 +0800
commitd869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c (patch)
treea12b9965dc003bef739abbcb07ac503c3655e511 /libempathy-gtk/empathy-avatar-chooser.h
parent9c9fcb09c9dd2523fc53858d84b44eb19fd1a7bf (diff)
downloadgsoc2013-empathy-d869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c.tar
gsoc2013-empathy-d869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c.tar.gz
gsoc2013-empathy-d869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c.tar.bz2
gsoc2013-empathy-d869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c.tar.lz
gsoc2013-empathy-d869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c.tar.xz
gsoc2013-empathy-d869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c.tar.zst
gsoc2013-empathy-d869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c.zip
EmpathyAvatarChooser: rebase on TpAccount API
It can now edit the avatar of a TpAccount passed at construct time. The image is taken from the TpAccount directly instead of asking the user to set one. This is much more self contained code. https://bugzilla.gnome.org/show_bug.cgi?id=680449
Diffstat (limited to 'libempathy-gtk/empathy-avatar-chooser.h')
-rw-r--r--libempathy-gtk/empathy-avatar-chooser.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/libempathy-gtk/empathy-avatar-chooser.h b/libempathy-gtk/empathy-avatar-chooser.h
index 7df142b64..fc21a7a39 100644
--- a/libempathy-gtk/empathy-avatar-chooser.h
+++ b/libempathy-gtk/empathy-avatar-chooser.h
@@ -55,17 +55,13 @@ struct _EmpathyAvatarChooserClass
GType empathy_avatar_chooser_get_type (void);
-GtkWidget *empathy_avatar_chooser_new (void);
+GtkWidget *empathy_avatar_chooser_new (TpAccount *account);
-void empathy_avatar_chooser_set (EmpathyAvatarChooser *self,
- EmpathyAvatar *avatar);
-
-void empathy_avatar_chooser_get_image_data (EmpathyAvatarChooser *self,
- const gchar **data,
- gsize *data_size,
- const gchar **mime_type);
-
-void empathy_avatar_chooser_set_account (EmpathyAvatarChooser *self,
- TpAccount *account);
+void empathy_avatar_chooser_apply_async (EmpathyAvatarChooser *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean empathy_avatar_chooser_apply_finish (EmpathyAvatarChooser *self,
+ GAsyncResult *result,
+ GError **error);
#endif /* __EMPATHY_AVATAR_CHOOSER_H__ */