Featured Post

Site Navigation is in the Left Column

Sunday, February 23, 2025

Upgrade to GTK 3

The upgrade to the latest 3.x version of GTK has been less than impressive.  One of the issues with GTK is that even point-upgrades change functionality.  The library is very powerful but is in desperate need of version control.  

Some of the things I found no longer worked include the following:

The way images are displayed changed.  I was able to easily adapt the code to compensate for this, but the fact it changed on a point upgrade is annoying.

The way lines are dealt with has changed.  In the past, you could plot line segments one at a time.  After each line segment, you could call the stroke() function and the line would be drawn.  The existing lines would remain intact one the screen.  With the latest version, the stroke() function clears the DrawingArea each time stroke() is called.  This is by design and forces the user to track the entire graphic in code so it can be redrawn every time anything changes.  This is very inefficient when it comes to coding.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.