Pascal's TechBlog

Friday, October 28, 2005

Corbicula anti virus: GTK ownage

Worked a bit on Corbicula... I finally got the ScanningDialog not to resize when a large file path was displayed in the FileScannedLabel.

The solution was beautiful, many GTK widgets have a builtin property called Ellipsize, when it's set to (for example) Middle, when the file path becomes too large to display within the current window size, the middle part of the file path is replaced with dots.

Conclusion GTK rocks...

0 Comments:

Post a Comment

<< Home