[glibmm/glibmm-2-36] Interface: Add a comment about overriding properties in constructor.



commit b2642195614ae8643078587fca6ddcd766a4e294
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Thu Apr 25 00:44:04 2013 -0400

    Interface: Add a comment about overriding properties in constructor.
    
        * glib/glibmm/interface.cc (Interface(onst Interface_Class&)): Explain
        what is happening with the lines that override the properties of the
        implemented interface, if any, for a custom type.
    
    Conflicts:
        ChangeLog

 ChangeLog                |    8 ++++++++
 glib/glibmm/interface.cc |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8ed3c64..f9eb1c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2013-04-25  José Alburquerque  <jaalburquerque gmail com>
 
+       Interface: Add a comment about overriding properties in constructor.
+
+       * glib/glibmm/interface.cc (Interface(onst Interface_Class&)): Explain
+       what is happening with the lines that override the properties of the
+       implemented interface, if any, for a custom type.
+
+2013-04-25  José Alburquerque  <jaalburquerque gmail com>
+
        Implement derived interface properties in the present.
 
        * glib/glibmm/class.cc (Class::properties_quark): Initialize this
diff --git a/glib/glibmm/interface.cc b/glib/glibmm/interface.cc
index bda5861..5a20750 100644
--- a/glib/glibmm/interface.cc
+++ b/glib/glibmm/interface.cc
@@ -66,6 +66,8 @@ Interface::Interface(const Interface_Class& interface_class)
     {
       void* const g_iface = g_type_default_interface_ref(iface_type);
 
+      // Override the properties of the derived interface, if any.
+
       const GType custom_type = G_OBJECT_CLASS_TYPE(instance_class);
       Class::properties_type* props = static_cast<Class::properties_type*>(g_type_get_qdata(custom_type, 
Class::properties_quark));
 


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