GNOME platform libraries
Posted Jul 30, 2012 19:56 UTC (Mon) by anselm
In reply to: GNOME platform libraries
Parent article: Otte: staring into the abyss
I think that in the case of GTK+ being a separate toolkit, there was a legitimate reason to implement a "native" canvas, or at the very least have a native API to a canvas. It also allowed embedding widgets on the canvas, so needed to be native to some degree.
Instead of starting GTK+ in the first place, it would have been perfectly feasible to write The GIMP based on Tk, possibly by implementing an »editable bitmapped graphics« widget or by augmenting the existing (object-based) canvas widget to include editable bitmap layers. The Tk canvas could already embed other widgets, so one would have been able to get that functionality (along with the rest of the toolkit) for free.
That approach would also have had the side benefit of making the »bitmapped graphics« extensions available to other Tk-based programs.
to post comments)