• Benjamin Otte's avatar
    symboliccolor: Allow props == NULL when resolving · 9e18d8b4
    Benjamin Otte authored
    If props == NULL in gtk_symbolic_color_resolve(), fail sanely for named
    colors. The docs used to say it was not allowed to pass NULL for named
    color, but that had problems:
    1) You do not know if a color was created that way. This is especially
       hard for generic users (like language bindings).
    2) It wasn't even true. Colors using other symbolic colors would also
       fail when trying to resolve their named colors, but the docs didn't
       say so.
    And because I want to use the function to resolve static colors early
    where possible, I changed things.
gtksymboliccolor.c 15.2 KB