6dc718c075bdd79cf6dba70526eeadf6c4e37790
[modest] / src / modest-icon-factory.h
1 /* modest-icon-factory.h */
2
3 #ifndef __MODEST_ICON_FACTORY_H__
4 #define __MODEST_ICON_FACTORY_H__
5
6 #include <gtk/gtk.h>
7
8 /**
9  * modest_icon_factory_init
10  *
11  * initialize the modest_icon_factory, which is a runtime-wide singleton
12  * this should be called only once, before doing anything else with the icon
13  * factory
14  */
15 void modest_icon_factory_init   (void);
16
17
18 /**
19  * modest_icon_factory_uninit
20  *
21  * uninitialize the modest_icon_factory. this should be done after the icon
22  * factory is no longer needed.
23  */
24 void modest_icon_factory_uninit (void);
25
26
27 /**
28  * modest_icon_factory_get_icon:
29  * @name: the filename of a certain icon
30  *
31  * Returns: a GdkPixBuf for this icon, or NULL in case of error
32  * You should NOT unref or modify the pixbuf in any way
33  */
34 GdkPixbuf* modest_icon_factory_get_icon (const gchar *name);
35
36 #endif /*__MODEST_ICON_FACTORY_H__ */