Re: [gtk-list] Re: problems upgrading from 0.99.8 to 1.0



brian martin <brian@cats.ucsc.edu> writes:
> I've tracked it down to the following line of code from one of my
> constructors:
> 
> Fract_Gui::Fract_Gui(fractal * _fract): fract(_fract)
> {
>     gen_func = new Gtk_Entry;
>                    ^^^^^^^^^ 
> 
> Fract_Gui inherits from Gtk_Window.
> 
> The following errors all appear to be associated with it:
> 
> ** WARNING **: file gtkentry.c: line 1425 (gtk_entry_grow_text):
> "GTK_IS_ENTRY (entry)"
> 
> ** WARNING **: invalid class type `(unknown)' in cast to `GtkEditable'
> 
> ** WARNING **: invalid class type `(unknown)' in cast to `GtkWidget'
> 
> ** WARNING **: invalid class type `(unknown)' in cast to `GtkObject'

These warnings are certainly coming from Gtk_Entry's constructor.
I do not know why though. 

Gtk_Entry::Gtk_Entry(void)
  :     Gtk_Editable(GTK_EDITABLE(gtk_type_new(c_class.get_type())))
{}

this is the code inside Gtk_Entry. Now should check why gtk_type_new returns
invalid values... (I'll look into it when I get to X somewhere...)

> ** WARNING **: file gtkobject.c: line 1519 (gtk_object_ref):
> "GTK_IS_OBJECT (object)"
> 
> ** WARNING **: file gtkobject.c: line 429 (gtk_object_sink):
> "GTK_IS_OBJECT (object)"
> 
> ** WARNING **: file gtkobject.c: line 1084 (gtk_object_get_data_by_id):
> "GTK_IS_OBJECT (object)"
> 
> ** WARNING **: file gtkobject.c: line 988
> (gtk_object_set_data_by_id_full): "GTK_IS_OBJECT (object)"

The rest are caused by failed creation of the widget..

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



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