Re: all these backend issues ?
- From: "Matthias Clasen" <Matthias Clasen poet de>
- To: <gtk-devel-list gnome org>
- Subject: Re: all these backend issues ?
- Date: Mon, 6 Aug 2001 13:42:33 +0200
> > testtreeview
> > Clicking on any colum header opens a new, empty window and produces
> > Gtk-CRITICAL **: file gtkcontainer.c: line 855: assertion `widget !=
> > NULL' failed
>
> This one is a consequence of the following code in
gtk+/tests/prop-editor.c:
>
> static void
> get_param_specs (GType type,
> GParamSpec ***specs,
> gint *n_specs)
> {
> GObjectClass *class = g_type_class_peek (type);
>
> /* We count on the fact we have an instance, or else we'd have
> * to use g_type_class_ref ();
> */
>
> /* Use private interface for now, fix later */
> *specs = NULL; /* class->property_specs; */
> *n_specs = 0; /* class->n_property_specs; */
> }
>
>
> which in turn leads properties_from_type to return NULL instead of a
widget.
> Don't know if this is easy to fix.
Looking through gobject.h I found g_object_class_list_properties which seems
just what is needed
to fix this. A patch can be found in #58609.
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]