diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | glib/glibmm/interface.cc | 2 |
2 files changed, 10 insertions, 0 deletions
@@ -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 d378cbe5..d55b9bd7 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)); |