Icon Functions (Legacy)

Icon Functions (Legacy)

Synopsis

void                e_icon_factory_init                 (void);
void                e_icon_factory_shutdown             (void);
gchar *             e_icon_factory_get_icon_filename    (const gchar *icon_name,
                                                         GtkIconSize icon_size);
GdkPixbuf *         e_icon_factory_get_icon             (const gchar *icon_name,
                                                         GtkIconSize icon_size);
GdkPixbuf *         e_icon_factory_pixbuf_scale         (GdkPixbuf *pixbuf,
                                                         gint width,
                                                         gint height);
gchar *             e_icon_factory_create_thumbnail     (const gchar *filename);

Description

Details

e_icon_factory_init ()

void                e_icon_factory_init                 (void);

Initialises the icon factory.


e_icon_factory_shutdown ()

void                e_icon_factory_shutdown             (void);

Shuts down the icon factory (cleans up all cached icons, etc).


e_icon_factory_get_icon_filename ()

gchar *             e_icon_factory_get_icon_filename    (const gchar *icon_name,
                                                         GtkIconSize icon_size);

Looks up the icon to use based on name and size.

icon_name :

name of the icon

icon_size :

Returns :

the requested icon pixbuf.

e_icon_factory_get_icon ()

GdkPixbuf *         e_icon_factory_get_icon             (const gchar *icon_name,
                                                         GtkIconSize icon_size);

icon_name :

name of the icon

icon_size :

size of the icon

Returns :

the specified icon of the requested size (may perform scaling to achieve this). If icon_name is a full path, that file is used directly. Otherwise it is looked up in the user's current icon theme. If the icon cannot be found in the icon theme, it falls back to loading the requested icon from Evolution's icon set installed from the art/ srcdir. If even that fails to find the requested icon, then a "broken-image" icon is returned.

e_icon_factory_pixbuf_scale ()

GdkPixbuf *         e_icon_factory_pixbuf_scale         (GdkPixbuf *pixbuf,
                                                         gint width,
                                                         gint height);

pixbuf :

width :

height :

Returns :


e_icon_factory_create_thumbnail ()

gchar *             e_icon_factory_create_thumbnail     (const gchar *filename);

filename :

Returns :