[glibmm] Interface: Add a comment about overriding properties in constructor.



commit c99706f217ebad78f17f8f5b9067cd8e4ab4831f
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.

 ChangeLog                |    8 ++++++++
 glib/glibmm/interface.cc |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0888ff6..61e3d07 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>
+
        Settings: Wrap the properties.
 
        * gio/src/settings.hg:
diff --git a/glib/glibmm/interface.cc b/glib/glibmm/interface.cc
index d378cbe..d55b9bd 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]