g_object_set_data()
- From: jls <jls free fr>
- To: gtk-app-devel-list gnome org
- Subject: g_object_set_data()
- Date: Wed, 12 Apr 2006 15:29:50 +0200
Hi all ;),
I try to set a glist to a name with the function
g_object_set_data as follow :
g_object_set_data(G_OBJECT(DirList),"dirlist",pWindow);
when I try to get this object with the g_object_get_data
function, GTK returns :
GLib-GObject-WARNING **: invalid uninstantiatable type
`<unknown>' in cast to `GtkCList'
Gtk-CRITICAL **: file gtkclist.c: line
2673 (gtk_clist_append): assertion `GTK_IS_CLIST (clist)' failed
And if I don't cast the object with G_OBJECT a warning is
returned during the compilation.
Who can I deal with those functions ?
Sincerely
Jerome
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]