X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=gobject%2Fgbinding.h;h=4b343e93bf5a5606c3e97a4aa3c2957f5b703c66;hb=e7fd3de86d6004d8dba5f8448eb063c6731546e9;hp=ebb329c5ef85ff0b7f0939c63b6f2d9e9f280d90;hpb=0156092a4203d1c40dcd0df7515fc7eeaebba9ac;p=platform%2Fupstream%2Fglib.git diff --git a/gobject/gbinding.h b/gobject/gbinding.h index ebb329c..4b343e9 100644 --- a/gobject/gbinding.h +++ b/gobject/gbinding.h @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: Emmanuele Bassi */ @@ -51,13 +49,16 @@ typedef struct _GBinding GBinding; /** * GBindingTransformFunc: * @binding: a #GBinding - * @source_value: the value of the source property - * @target_value: the value of the target property + * @from_value: the #GValue containing the value to transform + * @to_value: the #GValue in which to store the transformed value * @user_data: data passed to the transform function * - * A function to be called to transform the source property of @source - * from @source_value into the target property of @target - * using @target_value. + * A function to be called to transform @from_value to @to_value. If + * this is the @transform_to function of a binding, then @from_value + * is the @source_property on the @source object, and @to_value is the + * @target_property on the @target object. If this is the + * @transform_from function of a %G_BINDING_BIDIRECTIONAL binding, + * then those roles are reversed. * * Return value: %TRUE if the transformation was successful, and %FALSE * otherwise @@ -65,8 +66,8 @@ typedef struct _GBinding GBinding; * Since: 2.26 */ typedef gboolean (* GBindingTransformFunc) (GBinding *binding, - const GValue *source_value, - GValue *target_value, + const GValue *from_value, + GValue *to_value, gpointer user_data); /** @@ -115,6 +116,8 @@ GLIB_AVAILABLE_IN_ALL const gchar * g_binding_get_source_property (GBinding *binding); GLIB_AVAILABLE_IN_ALL const gchar * g_binding_get_target_property (GBinding *binding); +GLIB_AVAILABLE_IN_2_38 +void g_binding_unbind (GBinding *binding); GLIB_AVAILABLE_IN_ALL GBinding *g_object_bind_property (gpointer source,