开发者

How to find a bug in GTK+

开发者 https://www.devze.com 2023-01-09 23:30 出处:网络
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 ther

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消