diff options
author | Daniel Boles <dboles@src.gnome.org> | 2019-11-09 15:12:38 +0000 |
---|---|---|
committer | Daniel Boles <dboles@src.gnome.org> | 2019-11-09 15:14:11 +0000 |
commit | 704d24123c024dae9c3f91ade120f21bb3af376f (patch) | |
tree | 658f576869db2aa74a49a377e6b47e61bb45a83d /glib | |
parent | 6a173a5e4a5de8cde8d9d93ccfbfe0acd833cddc (diff) | |
download | glibmm-704d24123c024dae9c3f91ade120f21bb3af376f.tar.gz |
Binding: Fix using outdated enums in documentation
They are not Glib::BINDING_* anymore, but rather Glib::Binding::Flags::*
Diffstat (limited to 'glib')
-rw-r--r-- | glib/src/binding.hg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glib/src/binding.hg b/glib/src/binding.hg index 6d1f8378..33f69b5e 100644 --- a/glib/src/binding.hg +++ b/glib/src/binding.hg @@ -45,7 +45,7 @@ namespace Glib * * @code * Glib::Binding::bind_property(object1->property_a(), object2->property_b(), - * Glib::BINDING_BIDIRECTIONAL); + * Glib::Binding::Flags::BIDIRECTIONAL); * @endcode * * will keep the two properties in sync. @@ -59,7 +59,7 @@ namespace Glib * bool celsius_to_fahrenheit(const double& celsius, double& fahrenheit); * bool fahrenheit_to_celsius(const double& fahrenheit, double& celsius); * Glib::Binding::bind_property(adjustment1->property_value(), - * adjustment2->property_value(), Glib::BINDING_BIDIRECTIONAL, + * adjustment2->property_value(), Glib::Binding::Flags::BIDIRECTIONAL, * sigc::ptr_fun(celsius_to_fahrenheit), sigc::ptr_fun(fahrenheit_to_celsius)); * @endcode * @@ -112,7 +112,7 @@ public: /** Creates a binding between @a source_property and @a target_property, * allowing you to set the transformation functions to be used by the binding. * - * If @a flags contains Glib::BINDING_BIDIRECTIONAL then the binding will be mutual: + * If @a flags contains Glib::Binding::Flags::BIDIRECTIONAL then the binding will be mutual: * if @a target_property changes then the @a source_property * will be updated as well. The @a transform_from function is only used in case * of bidirectional bindings, otherwise it will be ignored. |