aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-categories-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-categories-config.c')
-rw-r--r--e-util/e-categories-config.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/e-util/e-categories-config.c b/e-util/e-categories-config.c
index 72db8e572c..59daea5aef 100644
--- a/e-util/e-categories-config.c
+++ b/e-util/e-categories-config.c
@@ -82,21 +82,21 @@ e_categories_config_set_color_for (const char *category, const char *color)
* Returns the icon (and associated mask) configured for the
* given category.
*/
-void
+gboolean
e_categories_config_get_icon_for (const char *category, GdkPixmap **pixmap, GdkBitmap **mask)
{
char *icon_file;
GdkPixbuf *pixbuf;
GdkBitmap *tmp_mask;
- g_return_if_fail (pixmap != NULL);
+ g_return_val_if_fail (pixmap != NULL, FALSE);
icon_file = (char *) e_categories_config_get_icon_file_for (category);
if (!icon_file) {
*pixmap = NULL;
if (mask != NULL)
*mask = NULL;
- return;
+ return FALSE;
}
/* load the icon in our list */
@@ -107,7 +107,7 @@ e_categories_config_get_icon_for (const char *category, GdkPixmap **pixmap, GdkB
*pixmap = NULL;
if (mask != NULL)
*mask = NULL;
- return;
+ return FALSE;
}
g_hash_table_insert (icons_table, g_strdup (icon_file), pixbuf);
@@ -117,6 +117,8 @@ e_categories_config_get_icon_for (const char *category, GdkPixmap **pixmap, GdkB
gdk_pixbuf_render_pixmap_and_mask (pixbuf, pixmap, &tmp_mask, 1);
if (mask != NULL)
*mask = tmp_mask;
+
+ return TRUE;
}
/**