Re: Reread file option for "image" standard object



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.

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.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]