X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-platform.h;h=f839513e2cb4d9bac31c5aeae93302aa81a949f4;hp=8e24e4ac1cdfd8cc606070105ae7e50d9b40cdb9;hb=6754695adb4d12d3c2db5f7f819d2d7a78c07334;hpb=3e7a3b4e5759d63285d8795435b2ceedaf63b216 diff --git a/src/modest-platform.h b/src/modest-platform.h index 8e24e4a..f839513 100644 --- a/src/modest-platform.h +++ b/src/modest-platform.h @@ -31,6 +31,7 @@ #define __MODEST_PLATFORM_H__ #include +#include #include /** @@ -54,7 +55,7 @@ TnyDevice* modest_platform_get_new_device (void); /** - * modest_platform_get_file_icon: + * modest_platform_get_file_icon_name: * @name: the name of the file, or NULL * @mime_type: the mime-type, or NULL * @effective_mime_type: out-param which receives the 'effective mime-type', ie., the mime type @@ -69,7 +70,17 @@ TnyDevice* modest_platform_get_new_device (void); * * Returns: the icon name */ -const gchar* modest_platform_get_file_icon (const gchar* name, const gchar* mime_type, - gchar **effective_mime_type); +gchar* modest_platform_get_file_icon_name (const gchar* name, const gchar* mime_type, + gchar **effective_mime_type); + +/** + * modest_platform_get_icon: + * @name: the name of the icon + * + * this function returns an icon, or NULL in case of error + */ +GdkPixbuf* modest_platform_get_icon (const gchar *name); + + #endif /* __MODEST_PLATFORM_UTILS_H__ */