• Dan Winship's avatar
    Fix overloading of "source" and "target" terminology in GBinding · 8e17040c
    Dan Winship authored
    GBindingTransformFunc called its arguments "source_value" and
    "target_value", but in the transform_from function of a bidirectional
    binding, "source_value" comes from the target object, and
    "target_value" comes from the source object, which quickly gets
    confusing if you need to use g_binding_get_source(), etc, in the
    Of course developers can call their transform function arguments
    whatever they want, but many will copy from the headers/docs to start
    out, so use less confusing names here ("from_value" and "to_value").
    Also, fix the documentation to describe the bidirectional case
gbinding.h 6.29 KB