Re: Problem with GtkClist




Cyril Dupuit a écrit :
Hello,

I am using a modified GtkClist widget in my Windows application.

All works fine with gtk+-2.10.13 but with gtk+-2.12.9, I have the 
following message :
GLib-GObject-CRITICAL **: g_value_get_pointer: assertion 
`G_VALUE_HOLDS_POINTER (value)' failed

when I add this widget to a scrolled window :
gtk_container_add(GTK_CONTAINER(pkt_scrollw), pList);

I know that this widget is deprecated but what is necessary to suppress 
this error message ?

Or what I need to modify in this widget to suppress this message ?

Thank you in advance,

Cyril




_________________________________________________________________
Faites vous de nouveaux amis grâce à l'annuaire des profils Messenger !
http://home.services.spaces.live.com/search/?page=searchresults&ss=true&FormId=AdvPeopleSearch&form=SPXFRM&tp=3&sc=2&pg=0&Search.DisplayName=Nom+public&search.gender=&search.age=&Search.FirstName=Pr%C3%A9nom&Search.LastName=Nom&search.location=Lieu&search.occupation=Profession&search.interests=amis&submit=Rechercher
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


  
I have found the problem.

When I have ported the code of the GtkClist widget to my application, I 
have had some problems with the marshaling function.

The _gtk_marshal_VOID__OBJECT_OBJECT() function is not defined in the 
Gtk libraries.

To replace this function, I have used 
gtk_marshal_NONE__POINTER_POINTER() but she does not work with the last 
version of GTK because she is deprecated.

I have searched in the code of  GTK+ the 
_gtk_marshal_VOID__OBJECT_OBJECT() function and I have putted the 
equivalent in my application.

Now, I don't have any message and the widget work fine.

Cyril



_________________________________________________________________
Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile !
http://www.messengersurvotremobile.com/?d=hotmail


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