GNOME Bugzilla – Bug 317455
Problem copying GtkTextAttributes boxed values
Last modified: 2005-09-30 22:09:03 UTC
This causes invalid data: attrs_copy = g_boxed_copy(GTK_TYPE_TEXT_ATTRIBUTES, attrs);
Created attachment 52780 [details] test program This test program prints: ** Message: scale: 1 ** Message: copy: scale: 1.39612e-309
Created attachment 52781 [details] [review] fix Problem was that gtk_text_attributes_ref returns void.
2005-09-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtktexttag.h: * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes to make this function work as boxed copy function. (#317455, Gustavo Carneiro)
Just one comment for future reference: there's a workaround for this in PyGTK CVS, it will be in PyGTK 2.8.1.