See the attached message. :) Please don't cast GType into guint; it breaks the API and fails on Alpha (at least). If you look at http://bugs.debian.org/406378, there is a patch at the end of the bug log which Steve Langasek says fixes the current problems. Can someone please check that into gnucash for the next release?
And, please, don't cast GType into guint. Also, Steve is serious in asking "where did they get the idea this was ok"; apparently there are *lots* of gtk+ programs which are doing this, and so he really would like to find what documentation or whatever is confusing and leading people to make this mistake so often in so many different programs. Thomas
--- Begin Message ---On Sat, Jan 13, 2007 at 09:26:13PM -0800, Thomas Bushnell BSG wrote: > Hi Steve; you were very helpful with the last alpha bug reported by this > submitter; I'm wondering if you can give it a little attention. I don't > have easy access to an alpha to reproduce the problem. Please ask upstream where they got the idea that g_type_register_static() returned a guint, or that it was otherwise ok to cast its GType return type to a guint. Years of debugging crashing gtk+ programs on alpha, and it's always the same thing -- somehow, GTK programmers are consistently getting bad information about how to use gobject, and I want to know where it's coming from so I can lart the people responsible. Attached is a partial patch which fixes the bug responsible for the *current* crasher bug on alpha. Searching the code, there are several more instances of this type abuse that will also need to be cleaned up if we want things like searching to not crash. I'll follow up with a full patch soon. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/
--- End Message ---
signature.asc
Description: This is a digitally signed message part
_______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel