1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 2014 Ricardo Mones and the Claws Mail team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef __AVATARS_H__
20 #define __AVATARS_H__
21 
22 #include <glib.h>
23 #include <gdk/gdk.h>
24 #include <gtk/gtk.h>
25 
26 #include "proctypes.h"
27 
28 #define AVATAR_IMAGE_RENDER_HOOKLIST "avatar_image_render"
29 
30 typedef struct _AvatarRender	AvatarRender;
31 
32 struct _AvatarRender
33 {
34 	MsgInfo *full_msginfo;
35 	GtkWidget *image;
36 	gint type;
37 };
38 
39 AvatarRender *avatars_avatarrender_new		(MsgInfo *msginfo);
40 void avatars_avatarrender_free			(AvatarRender *avrender);
41 
42 gboolean avatars_internal_rendering_hook	(gpointer source,
43 						 gpointer data);
44 
45 void avatars_init				(void);
46 void avatars_done				(void);
47 
48 #endif
49