Problems deleting vscale/hscale with gtk_widget_destroy()



I have an app which creates a "fancy" slider using vscale. Basically, I have the vscale packed into a box, then into a frame. Alongside the scale are text digits to provide the user with a scale. But when I issue:

   gtk_widget_destroy(frame);

I get a host of errors / warnings:

   Gtk-WARNING **: invalid class type `(unknown)' in cast to `GtkObject'

Gtk-CRITICAL **: file gtkobject.c: line 1070 (gtk_object_get_data_by_id): assertion `GTK_IS_OBJECT (object)' failed.

Gtk-WARNING **: gtk_signal_disconnect_by_data(): could not find handler containing data (0xA6916D8)

   Gtk-WARNING **: invalid class type `(unknown)' in cast to `GtkObject'

Gtk-CRITICAL **: file gtkobject.c: line 1172 (gtk_object_unref): assertion `GTK_IS_OBJECT (object)' failed.

My app continues just fine, but these warnings are disturbing to my users. The thing is, I have other "fancy" widgets which also pack multiple widgets into a frame. When I call the gtk_widget_destroy() on their frames I do not get the error. The above messages seem exclusive to the vscale/hscale objects. (IE., the same errors crop up with hscale). Also, if I simply don't create the h/vscale, I don't get the error either.

Anyone encountered this before?  Have an idea / solution?

I'm using gtk 1.2.10 with kernel 2.4.22 under Slackware 9.1.

Thanks,

DT

--
Technical Director - Virginia Center for Computer Music
http://www.virginia.edu/music/vccm.html





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