def _parse_color_value(value):
    """Converts a Gdk color object to a hex-formatted string (e.g. #FFFFFF)"""
    return '#%02x%02x%02x' % (int(value.red * 255), int(value.green * 255),
        int(value.blue * 255))
