void setLEDToColour(uint32_t colour) {
	uint8_t red = RED_COMPONENT(colour);
	uint8_t green = GREEN_COMPONENT(colour);
	uint8_t blue = BLUE_COMPONENT(colour);

	setLED(red, green, blue);
}
/* Add ten empty (temporary) colorfilters for easy coloring */
static void
color_filters_add_tmp(GSList **cfl)
{
    gchar  *name = NULL;
    guint32 i;
    gchar** bg_colors;
    gchar** fg_colors;
    unsigned long int cval;
    color_t bg_color, fg_color;
    color_filter_t *colorf;

    g_assert(strlen(prefs.gui_colorized_fg)==69);
    g_assert(strlen(prefs.gui_colorized_bg)==69);
    fg_colors = g_strsplit(prefs.gui_colorized_fg, ",", -1);
    bg_colors = g_strsplit(prefs.gui_colorized_bg, ",", -1);

        for ( i=1 ; i<=10 ; i++ ) {
            name = g_strdup_printf("%s%02d",CONVERSATION_COLOR_PREFIX,i);

            /* retrieve background and foreground colors */
            cval = strtoul(fg_colors[i-1], NULL, 16);
            initialize_color(&fg_color, RED_COMPONENT(cval),
                                        GREEN_COMPONENT(cval),
                                        BLUE_COMPONENT(cval) );
            cval = strtoul(bg_colors[i-1], NULL, 16);
            initialize_color(&bg_color, RED_COMPONENT(cval),
                                        GREEN_COMPONENT(cval),
                                        BLUE_COMPONENT(cval) );
            colorf = color_filter_new(name, NULL, &bg_color, &fg_color, TRUE);
            colorf->filter_text = g_strdup("frame");
            colorf->c_colorfilter = NULL;
            *cfl = g_slist_append(*cfl, colorf);

            g_free(name);
    }

    g_strfreev(fg_colors);
    g_strfreev(bg_colors);

    return;
}