Re: GLib critical message
- From: Murray Cumming <murrayc murrayc com>
- To: Kjell Ahlstedt <kjell ahlstedt bredband net>
- Cc: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: GLib critical message
- Date: Thu, 30 Jun 2011 17:25:49 +0200
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
> http://mail.gnome.org/archives/gtkmm-list/2011-April/msg00078.html
>
> 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
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]