How to find a bug in GTK+
What is the best way to hack away a bug in GTK+? The bug in https://bugzilla.gnome.org/show_bug.cgi?id=12784开发者_如何学Python0 is irritating and I would like to see a working version of it. But there is just so many lines of code so how can I find the correct part of the code? I'm using DDD.
In this case you know it's a bug in the text view, so you'd look at gtk+/gtk/gtktextview.c and then start following the source out to other related files.
This particular bug is essentially unfixable though. Each paragraph is rendered as a single PangoLayout and PangoLayout doesn't really support processing only part of a single paragraph. The best fix might be in GEdit to throw an error or insert line breaks or something.
精彩评论