This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Cygwin gdb-20020411-1 HelpViewer does not display images
- From: Ton van Overbeek <tvoverbe at cistron dot nl>
- To: insight at sources dot redhat dot com
- Date: Wed, 17 Apr 2002 14:54:50 +0200
- Subject: Cygwin gdb-20020411-1 HelpViewer does not display images
While trying to use the recently released Cygwin gdb I noticed that
the internal helpviewer does not display images. It shows
the 'broken image' on all places a gif is referenced.
The internal helpviewer uses the Scrolledhtml class.
Thic class inherits from the Scrolledtext class.
The Scrolledtext class has a public method called 'image'.
(this method did not exist in older gdb releases)
So all unqualified image commands in Scrolledhtml will use
Scrolledtext::image instead of the plain Tk image command.
Deleting the image method in Scrolledtext makes all the images
appear again in the helpviewer.
This is a 'quick & dirty' fix. The better approach (probably) is
to replace all reference to image in Scrolledhtml with ::image
to make the reference to the plain Tk image command explicit.
So, itcl/itk gurus, what is the 'correct' fix to this problem ?
I am happy to submit a patch either way.
Waiting for feedback.
Ton van Overbeek