diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2013-04-25 00:44:04 -0400 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2013-04-25 00:44:04 -0400 |
commit | c99706f217ebad78f17f8f5b9067cd8e4ab4831f (patch) | |
tree | bb6cfe463bc8c000fff5c03121f15614aa2d639f /glib/glibmm/interface.cc | |
parent | a88d2341144533ac698432b48f85b72642c0362e (diff) | |
download | glibmm-c99706f217ebad78f17f8f5b9067cd8e4ab4831f.tar.gz |
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.
Diffstat (limited to 'glib/glibmm/interface.cc')
-rw-r--r-- | glib/glibmm/interface.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |