public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Cygwin gdb-20020411-1 HelpViewer does not display images
@ 2002-04-17  5:55 Ton van Overbeek
  2002-04-17  8:36 ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Ton van Overbeek @ 2002-04-17  5:55 UTC (permalink / raw)
  To: insight

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin gdb-20020411-1 HelpViewer does not display images
  2002-04-17  5:55 Cygwin gdb-20020411-1 HelpViewer does not display images Ton van Overbeek
@ 2002-04-17  8:36 ` Keith Seitz
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Seitz @ 2002-04-17  8:36 UTC (permalink / raw)
  To: Ton van Overbeek; +Cc: insight

On Wed, 17 Apr 2002, Ton van Overbeek wrote:

> 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.

Ugh. Yes, I've been meaning to get to that...

> 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.

Aha! Wow, am I glad someone tracked this down! Yes, you are right: the
correct way of dealing with this is specifying a namespace/scope for the
image command used in Scrolledhtml, "::image".

Keith


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin gdb-20020411-1 HelpViewer does not display images
  2002-04-17  8:47 tvoverbe
@ 2002-04-17  9:25 ` Keith Seitz
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Seitz @ 2002-04-17  9:25 UTC (permalink / raw)
  To: tvoverbe; +Cc: insight

On Wed, 17 Apr 2002 tvoverbe@cistron.nl wrote:

> Do you still want me to supply a patch, or will you do it
> yourself, since it is rather trivial?

I can definitely churn one out quickly enough, now that you've pointed it
out.

Thanks a bunch!
Keith


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin gdb-20020411-1 HelpViewer does not display images
@ 2002-04-17  8:47 tvoverbe
  2002-04-17  9:25 ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: tvoverbe @ 2002-04-17  8:47 UTC (permalink / raw)
  To: keiths; +Cc: insight

> On Wed, 17 Apr 2002, Ton van Overbeek wrote:
> 
> > 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.
> 
> Ugh. Yes, I've been meaning to get to that...
> 
> > 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.
> 
> Aha! Wow, am I glad someone tracked this down! Yes, you are right: the
> correct way of dealing with this is specifying a namespace/scope for the
> image command used in Scrolledhtml, "::image".
> 

In the meantime I checked the itcl/itk/iwidgets CVS at
sourceforge, and indeed from iwidgets 4.0.0 onward all
references to image in Scrolledhtml are now "::image".

Do you still want me to supply a patch, or will you do it
yourself, since it is rather trivial?

Ton


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-17 16:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17  5:55 Cygwin gdb-20020411-1 HelpViewer does not display images Ton van Overbeek
2002-04-17  8:36 ` Keith Seitz
2002-04-17  8:47 tvoverbe
2002-04-17  9:25 ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).