summaryrefslogtreecommitdiff
path: root/glib/glibmm/interface.cc
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2005-03-07 15:42:20 +0000
committerMurray Cumming <murrayc@src.gnome.org>2005-03-07 15:42:20 +0000
commit45789a442c8acbe7d57f61510646d4d4cdf14d4b (patch)
tree488b47bcfc2080d50ea9fd5eebcfff005bedccaa /glib/glibmm/interface.cc
parent1a1b9bd772c26dcf913f867b16736dd129ae676f (diff)
downloadglibmm-45789a442c8acbe7d57f61510646d4d4cdf14d4b.tar.gz
2.6.1:
2005-03-07 Murray Cumming <murrayc@murrayc.com> * glib/glibmm/interface.cc: Disable the new check for pre-existing interface implementations, because it checks all base gtypes and not just the current gtype. Bug #169442 by Bryan Forbes.
Diffstat (limited to 'glib/glibmm/interface.cc')
-rw-r--r--glib/glibmm/interface.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/glib/glibmm/interface.cc b/glib/glibmm/interface.cc
index 95b74137..d3ade452 100644
--- a/glib/glibmm/interface.cc
+++ b/glib/glibmm/interface.cc
@@ -29,8 +29,9 @@ namespace Glib
void Interface_Class::add_interface(GType instance_type) const
{
- if( !g_type_is_a(instance_type, gtype_) ) //For convenience, don't complain about calling this twice.
- {
+ //This check is distabled, because it checks whether any of the types's bases implement the interface, not just the specific type.
+ //if( !g_type_is_a(instance_type, gtype_) ) //For convenience, don't complain about calling this twice.
+ //{
const GInterfaceInfo interface_info =
{
class_init_func_,
@@ -39,7 +40,7 @@ void Interface_Class::add_interface(GType instance_type) const
};
g_type_add_interface_static(instance_type, gtype_, &interface_info);
- }
+ //}
}