Re: Reread file option for "image" standard object
From: "Dolores Alia de Saravia" <loli unsa edu ar>
To: dia-list gnome org
Subject: Re: Reread file option for "image" standard object
Date: Wed, 7 Aug 2002 08:37:35 -0300
On Tue, 6 Aug 2002, Lars Clausen wrote:
> On Tue, 6 Aug 2002, Dolores Alia de Saravia wrote:
> >
> >
> >
> > A small change for image.c (from version of August 5, attached) is
> > proposed in order to make easier to refresh an image if one
suspects
> > file image changed.
> > (With actual program, the only way I found to do it is by changing,
> > twice, the file name)
> >
> > A "reread image file" ToggleButton and corresponding source is
added,
> > to reload the file without changing representation image size.
>
> As Cyrille said, *please* use unidiffs (cvs diff -u <file>). We
can't look
> through the entire file to find just the small changes you've made.
>
I'm sending the output which I called "diferencias". Is this one
Lars and Cyrille are talking about?
> It is, however, a good point you're bringing up. Instead of adding a
> button, I would suggest that you make a check (using stat(2)) in
> image_update_data() to see if the timestamp has changed, and store the
> timestamp whenever the image is loaded.
>
I will look at this; but I think that in any case the option should be
there for the user to decide.
Thanks,
Loli
email: loli@unsa.edu.ar
Sent using NeoMail, a web-based e-mail client.
http://neomail.sourceforge.net