Re: GLib critical message

On Thu, 2011-06-30 at 17:03 +0200, Kjell Ahlstedt wrote:
> The attached file contains a backtrace from gdb, that I saved after a
> short investigation in connection with the message
> An excerpt from the backtrace:
>   g_type_add_interface_static
>   Glib::Interface_Class::add_interface
>   Glib::Interface::Interface
>   Gtk::CellEditable::CellEditable
> The GtkCellEditable interface installs the editing-canceled attribute
> with g_object_interface_install_property(). Every class that implements
> the interface must register the attribute with
> g_object_class_override_property() before g_type_add_interface_static()
> is called. How can a custom object do that?
> This is no problem when a C++ class wraps a GTK+ C class which
> implements the GtkCellEditable interface. Then the C class makes all
> necessary registrations.

Glib::Property<> (or PropertyProxy<>?) somehow registers the property in
the GType system. Maybe it can be made to automatically override rather
than register when appropriate.

murrayc murrayc com

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