[glibmm] Binding: Fix using outdated enums in documentation



commit 704d24123c024dae9c3f91ade120f21bb3af376f
Author: Daniel Boles <dboles src gnome org>
Date:   Sat Nov 9 15:12:38 2019 +0000

    Binding: Fix using outdated enums in documentation
    
    They are not Glib::BINDING_* anymore, but rather Glib::Binding::Flags::*

 glib/src/binding.hg | 6 +++---
 1 file 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]