Re: [gtk-list] is there a function to allow a window to automaticallyredraw itself everytime it changes




Hi,

I don't think there's a specific function to do this. But I think what you
want is to use
     stat (filename, &stat_info)
to see if st_mtime (last modified time) has changed since your last read
... if it has,
you simply re-read the file ...

You could use a Gtk timeout to periodically check this ...

Greetings
--> R




dcampbell@imrglobal.co.jp on 07/22/99 08:10:48 AM

Please respond to gtk-list@redhat.com

To:   gtk-list@redhat.com
cc:
Subject:  [gtk-list] is there a function to allow a window to automatically
      redraw itself everytime it changes



---------------------- Forwarded by David Campbell/Tokyo/FSJ on 07/22/99
03:11 PM ---------------------------


David Campbell
07/21/99 07:31 PM

To:   gtk-list@redhat.com
cc:

Subject:  is there a function to allow a window to automatically redraw
      itself everytime it changes

hi,

at the moment i writing a program which lets people read the source for a
number of log files
which are displayed in a list, the problem is the source for the log files
is  changing throughout,
is there a way to make the source refresh itselt even while you're are
viewing it, also log files have to be added  to the list as they are
created as they are created.

At the moment i have to press a button to make these changes take affect
which is quite annoying,


any help would be apperciated.

thanks



--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null










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