def METHOD_NAME(rgba: Gdk.RGBA) -> str:
    """
    Convert an Gdk.RGBA to a string by using the hexadecimal 8-bit color
    notation, so #RRGGBB. Alpha is ignored.
    This is useful because GTG worked with the hex notation, but
    Gdk.RGBA.to_string() outputs something like `rgb(255, 255, 255)`, which
    isn't expected.
    """
    return "#%02x%02x%02x" % (int(max(0, min(rgba.red, 1)) * 255),
                              int(max(0, min(rgba.green, 1)) * 255),
                              int(max(0, min(rgba.blue, 1)) * 255))